feat: add trouble.nvim

This commit is contained in:
Guz
2024-12-26 11:55:29 -03:00
parent e439f557c4
commit f356d4a19b
3 changed files with 38 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ Minimal Neovim configuration, focused mostly in just coding and text editing.
- [ ] Bundle and use default formatters for when no one is available on `PATH`;
- [ ] Better stylize the editor (mainly pop-overs and hover menus);
- [ ] Remove `tfm.nvim` and use Neovim APIs to do the same features.
- [ ] Better integration and usage of the Quickfix list with [`trouble.nvim`](https://giitihub.com/folke/trouble.nvim)
## Using

View File

@@ -122,4 +122,40 @@ return {
},
},
},
-- Quickfix list and diagnostics
{
"trouble.nvim",
cmd = { "Trouble" },
keys = {
{
"<leader>t",
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
desc = "[Trouble] Buffer diagnostics",
},
{
"<leader>te",
"<cmd>Trouble diagnostics toggle filter.buf=0 severity=viimi.diagnostics.severity.ERROR<cr>",
desc = "[Trouble] Buffer diagnostics",
},
{
"<leader>la",
"<cmd>Trouble lsp toggle focus=false win.position=right win.type=split<cr>",
desc = "[Trouble] All LSP Definitions & references",
},
{
"<leader>s",
"<cmd>Trouble symbols toggle focus=false win.position=right win.type=split<cr>",
desc = "[Trouble] Symbols",
},
{
"<leader>q",
"<cmd>Trouble qflist toggle<cr>",
desc = "[Trouble] Quickfix list",
},
},
after = function()
require("trouble").setup()
end,
},
}

View File

@@ -47,6 +47,7 @@
nvim-web-devicons
telescope-nvim
telescope-fzf-native-nvim
trouble-nvim
tmux-nvim
vim-sleuth