feat: add trouble.nvim
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
nvim-web-devicons
|
||||
telescope-nvim
|
||||
telescope-fzf-native-nvim
|
||||
trouble-nvim
|
||||
tmux-nvim
|
||||
vim-sleuth
|
||||
|
||||
|
||||
Reference in New Issue
Block a user