diff options
| author | Aotrix <[email protected]> | 2025-02-28 19:38:02 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2025-02-28 19:38:02 +0100 |
| commit | 9e40d58510b3ff25953cd9ad791592de5f6bcfb1 (patch) | |
| tree | 40461350906daa2dafac59e3c42f2bdf5cdc52f8 /lua/aotrix/plugins/trouble.lua | |
| parent | 47c7f5c1899197d5572e2071602dc862a8bbc46e (diff) | |
added trouble plugin
Diffstat (limited to 'lua/aotrix/plugins/trouble.lua')
| -rw-r--r-- | lua/aotrix/plugins/trouble.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lua/aotrix/plugins/trouble.lua b/lua/aotrix/plugins/trouble.lua new file mode 100644 index 0000000..2a93de4 --- /dev/null +++ b/lua/aotrix/plugins/trouble.lua @@ -0,0 +1,32 @@ +return { + "folke/trouble.nvim", + opts = {}, -- for default options, refer to the configuration section for custom setup. + cmd = "Trouble", + keys = { + { + "<leader>xx", + "<cmd>Trouble diagnostics toggle<cr>", + desc = "Diagnostics (Trouble)" + }, { + "<leader>xX", + "<cmd>Trouble diagnostics toggle filter.buf=0<cr>", + desc = "Buffer Diagnostics (Trouble)" + }, { + "<leader>cs", + "<cmd>Trouble symbols toggle focus=false<cr>", + desc = "Symbols (Trouble)" + }, { + "<leader>cl", + "<cmd>Trouble lsp toggle focus=false win.position=right<cr>", + desc = "LSP Definitions / references / ... (Trouble)" + }, { + "<leader>xL", + "<cmd>Trouble loclist toggle<cr>", + desc = "Location List (Trouble)" + }, { + "<leader>xQ", + "<cmd>Trouble qflist toggle<cr>", + desc = "Quickfix List (Trouble)" + } + } +} |
