Skip to content

Commit f5156e1

Browse files
committed
lazy: takeover trouble.nvim
1 parent ae0e96e commit f5156e1

File tree

3 files changed

+37
-4
lines changed

3 files changed

+37
-4
lines changed

.gitmodules

-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@
44
ignore = untracked
55
[submodule "semantic-highlight.vim"]
66
url = https://github.com/jaxbot/semantic-highlight.vim.git
7-
[submodule "pack/bundles/start/trouble.nvim"]
8-
path = pack/bundles/start/trouble.nvim
9-
url = https://github.com/folke/trouble.nvim

lua/plugins/lsp.lua

+37
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,41 @@ return {
132132
"nvim-tree/nvim-web-devicons",
133133
},
134134
},
135+
{
136+
"folke/trouble.nvim",
137+
opts = {},
138+
cmd = "Trouble",
139+
keys = {
140+
{
141+
"<leader>xx",
142+
"<cmd>Trouble diagnostics toggle<cr>",
143+
desc = "Diagnostics (Trouble)",
144+
},
145+
{
146+
"<leader>xX",
147+
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
148+
desc = "Buffer Diagnostics (Trouble)",
149+
},
150+
{
151+
"<leader>xs",
152+
"<cmd>Trouble symbols toggle focus=false<cr>",
153+
desc = "Symbols (Trouble)",
154+
},
155+
{
156+
"<leader>cl",
157+
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
158+
desc = "LSP Definitions / references / ... (Trouble)",
159+
},
160+
{
161+
"<leader>xl",
162+
"<cmd>Trouble loclist toggle<cr>",
163+
desc = "Location List (Trouble)",
164+
},
165+
{
166+
"<leader>xq",
167+
"<cmd>Trouble qflist toggle<cr>",
168+
desc = "Quickfix List (Trouble)",
169+
},
170+
},
171+
},
135172
}

pack/bundles/start/trouble.nvim

-1
This file was deleted.

0 commit comments

Comments
 (0)