From d0766aa55fa9638d980a1f1e6c67388dcd2cb571 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sun, 7 Jul 2024 11:48:41 +0300 Subject: Neovim: refactored more files, including trouble, neotree, edgy and oil --- .config/nvim/lua/custom/plugins/trouble.lua | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .config/nvim/lua/custom/plugins/trouble.lua (limited to '.config/nvim/lua/custom/plugins/trouble.lua') diff --git a/.config/nvim/lua/custom/plugins/trouble.lua b/.config/nvim/lua/custom/plugins/trouble.lua new file mode 100644 index 0000000..3239aa7 --- /dev/null +++ b/.config/nvim/lua/custom/plugins/trouble.lua @@ -0,0 +1,40 @@ +return { + 'folke/trouble.nvim', + opts = {}, + cmd = 'Trouble', + -- TODO: Consider maybe using this for outlines (code structure) + -- and also configuring some of the keys to better fit me + -- and probably removing most of them in the process + keys = { + { + 'xx', + 'Trouble diagnostics toggle', + desc = 'Diagnostics (Trouble)', + }, + { + 'xX', + 'Trouble diagnostics toggle filter.buf=0', + desc = 'Buffer Diagnostics (Trouble)', + }, + { + 'cs', + 'Trouble symbols toggle focus=false', + desc = 'Symbols (Trouble)', + }, + { + 'cl', + 'Trouble lsp toggle focus=false win.position=right', + desc = 'LSP Definitions / references / ... (Trouble)', + }, + { + 'xL', + 'Trouble loclist toggle', + desc = 'Location List (Trouble)', + }, + { + 'xQ', + 'Trouble qflist toggle', + desc = 'Quickfix List (Trouble)', + }, + }, +} -- cgit v1.3.1