From 9fc0289ad4d0a6a9ad40f90b5c0cc74eb2146950 Mon Sep 17 00:00:00 2001 From: James Chung Date: Sun, 7 Jul 2024 14:35:01 -0500 Subject: [PATCH] update trouble keybindings --- lua/config/keymaps.lua | 3 --- lua/plugins/trouble.lua | 12 ++++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 lua/plugins/trouble.lua diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 105f9e4..0eeb585 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -31,8 +31,5 @@ vim.keymap.set('n', 'th', builtin.help_tags, {}) -- Set folke/todo-comments.nvim toggle keybinding vim.api.nvim_set_keymap("n", "td", "TodoTelescope", { noremap = true, silent = true }) --- Set folke/trouble.nvim toggle keybinding -vim.api.nvim_set_keymap("n", "tt", "TroubleToggle", { noremap = true, silent = true }) - -- Set williamboman/mason.nvim open/close toggle vim.api.nvim_set_keymap("n", "ma", "Mason", { noremap = true, silent = true }) diff --git a/lua/plugins/trouble.lua b/lua/plugins/trouble.lua new file mode 100644 index 0000000..5e8d67a --- /dev/null +++ b/lua/plugins/trouble.lua @@ -0,0 +1,12 @@ +return { + { + "folke/trouble.nvim", + keys = { + { + "tt", + "Trouble diagnostics toggle", + desc = "Diagnostics (Trouble)", + } + } + } +}