Add trouble v3 beta, this also replaces the outliner from lspsaga with the much better document symbols from trouble!!
This commit is contained in:
parent
2b1403b59c
commit
34515f29df
2 changed files with 17 additions and 21 deletions
|
|
@ -22,6 +22,7 @@ return {
|
||||||
enable = false,
|
enable = false,
|
||||||
},
|
},
|
||||||
outline = {
|
outline = {
|
||||||
|
enable = false,
|
||||||
win_width = 52,
|
win_width = 52,
|
||||||
},
|
},
|
||||||
ui = {
|
ui = {
|
||||||
|
|
@ -41,9 +42,6 @@ return {
|
||||||
["K"] = {
|
["K"] = {
|
||||||
cmd = ":Lspsaga hover_doc<CR>"
|
cmd = ":Lspsaga hover_doc<CR>"
|
||||||
},
|
},
|
||||||
["<leader>lo"] = {
|
|
||||||
cmd = ":Lspsaga outline<CR>"
|
|
||||||
},
|
|
||||||
["<leader>rn"] = {
|
["<leader>rn"] = {
|
||||||
cmd = ":Lspsaga rename<CR>"
|
cmd = ":Lspsaga rename<CR>"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,30 +1,28 @@
|
||||||
return {
|
return {
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
branch = "dev",
|
branch = "dev",
|
||||||
opts = {},
|
config = function()
|
||||||
config = {
|
require("trouble").setup({})
|
||||||
|
|
||||||
require("utils").add_keymaps({
|
require("utils").add_keymaps({
|
||||||
n = {
|
n = {
|
||||||
-- ["<leader>xx"] = {
|
["<leader>x"] = {
|
||||||
-- cmd = "<cmd>Trouble diagnostics toggle<cr>",
|
cmd = "<cmd>Trouble diagnostics toggle<cr>",
|
||||||
-- },
|
},
|
||||||
-- ["<leader>xX"] = {
|
["<leader>ls"] = {
|
||||||
-- cmd = "<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
|
cmd = "<cmd>Trouble symbols toggle focus=false<cr>",
|
||||||
-- },
|
},
|
||||||
-- ["<leader>cs"] = {
|
-- Stick with using the references feature fom lspsaga for now, might change later
|
||||||
-- cmd = "<cmd>Trouble symbols toggle focus=false<cr>",
|
|
||||||
-- },
|
|
||||||
-- ["<leader>cl"] = {
|
-- ["<leader>cl"] = {
|
||||||
-- cmd = "<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
|
-- cmd = "<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
|
||||||
-- },
|
-- },
|
||||||
-- ["<leader>xL"] = {
|
["<leader>ll"] = {
|
||||||
-- cmd = "<cmd>Trouble loclist toggle<cr>",
|
cmd = "<cmd>Trouble loclist toggle<cr>",
|
||||||
-- },
|
},
|
||||||
-- ["<leader>xQ"] = {
|
["<leader>lq"] = {
|
||||||
-- cmd = "<cmd>Trouble qflist toggle<cr>",
|
cmd = "<cmd>Trouble qflist toggle<cr>",
|
||||||
-- },
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
end
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue