add trouble

This commit is contained in:
Gered 2024-09-03 19:20:10 -04:00
parent ce0b408976
commit ef34356faa
2 changed files with 16 additions and 0 deletions

View file

@ -40,6 +40,7 @@
"todo-comments.nvim": { "branch": "main", "commit": "319c01b99b7a8c9ac2066bf0efd4d6ec68fef444" },
"toggleterm.nvim": { "branch": "main", "commit": "137d06fb103952a0fb567882bb8527e2f92d327d" },
"tokyonight.nvim": { "branch": "main", "commit": "4b386e66a9599057587c30538d5e6192e3d1c181" },
"trouble.nvim": { "branch": "main", "commit": "6efc446226679fda0547c0fd6a7892fd5f5b15d8" },
"vim-sleuth": { "branch": "master", "commit": "1cc4557420f215d02c4d2645a748a816c220e99b" },
"which-key.nvim": { "branch": "main", "commit": "bfec3d6bc0a9b0b2cb11644642f78c2c3915eef0" }
}

15
lua/plugins/trouble.lua Normal file
View file

@ -0,0 +1,15 @@
return {
{
'folke/trouble.nvim',
cmd = 'Trouble',
keys = {
{ '<leader>tg', '<Cmd>Trouble diagnostics toggle pinned=true filter.buf=0<CR>', desc = 'Toggle Dia[g]nostics for Buffer' },
{ '<leader>tG', '<Cmd>Trouble diagnostics toggle<CR>', desc = 'Toggle Dia[g]nostics' },
{ '<leader>tq', '<Cmd>Trouble qflist toggle<CR>', desc = 'Toggle [Q]uickfixes' },
},
opts = {
focus = true,
auto_preview = true,
},
},
}