Skip to content

Commit 38e0552

Browse files
committed
Added trouble.nvim
1 parent 887b6da commit 38e0552

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

init.lua

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,44 @@ require('lazy').setup({
10021002
end,
10031003
},
10041004

1005+
{
1006+
'folke/trouble.nvim',
1007+
opts = {}, -- for default options, refer to the configuration section for custom setup.
1008+
cmd = 'Trouble',
1009+
keys = {
1010+
{
1011+
'<leader>xx',
1012+
'<cmd>Trouble diagnostics toggle<cr>',
1013+
desc = 'Diagnostics (Trouble)',
1014+
},
1015+
{
1016+
'<leader>xX',
1017+
'<cmd>Trouble diagnostics toggle filter.buf=0<cr>',
1018+
desc = 'Buffer Diagnostics (Trouble)',
1019+
},
1020+
{
1021+
'<leader>cs',
1022+
'<cmd>Trouble symbols toggle focus=false<cr>',
1023+
desc = 'Symbols (Trouble)',
1024+
},
1025+
{
1026+
'<leader>cl',
1027+
'<cmd>Trouble lsp toggle focus=false win.position=right<cr>',
1028+
desc = 'LSP Definitions / references / ... (Trouble)',
1029+
},
1030+
{
1031+
'<leader>xL',
1032+
'<cmd>Trouble loclist toggle<cr>',
1033+
desc = 'Location List (Trouble)',
1034+
},
1035+
{
1036+
'<leader>xQ',
1037+
'<cmd>Trouble qflist toggle<cr>',
1038+
desc = 'Quickfix List (Trouble)',
1039+
},
1040+
},
1041+
},
1042+
10051043
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
10061044
-- init.lua. If you want these files, they are in the repository, so you can just download them and
10071045
-- place them in the correct locations.

lazy-lock.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
2929
"telescope.nvim": { "branch": "master", "commit": "a4ed82509cecc56df1c7138920a1aeaf246c0ac5" },
3030
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
31+
"trouble.nvim": { "branch": "main", "commit": "85bedb7eb7fa331a2ccbecb9202d8abba64d37b3" },
3132
"vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" },
3233
"vscode-js-debug": { "branch": "main", "commit": "41c802115c16b25c5a4c3573c1b38b4ba58875e3" },
3334
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }

0 commit comments

Comments
 (0)