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,
|
||||
},
|
||||
outline = {
|
||||
enable = false,
|
||||
win_width = 52,
|
||||
},
|
||||
ui = {
|
||||
|
|
@ -41,9 +42,6 @@ return {
|
|||
["K"] = {
|
||||
cmd = ":Lspsaga hover_doc<CR>"
|
||||
},
|
||||
["<leader>lo"] = {
|
||||
cmd = ":Lspsaga outline<CR>"
|
||||
},
|
||||
["<leader>rn"] = {
|
||||
cmd = ":Lspsaga rename<CR>"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,30 +1,28 @@
|
|||
return {
|
||||
"folke/trouble.nvim",
|
||||
branch = "dev",
|
||||
opts = {},
|
||||
config = {
|
||||
config = function()
|
||||
require("trouble").setup({})
|
||||
|
||||
require("utils").add_keymaps({
|
||||
n = {
|
||||
-- ["<leader>xx"] = {
|
||||
-- cmd = "<cmd>Trouble diagnostics toggle<cr>",
|
||||
-- },
|
||||
-- ["<leader>xX"] = {
|
||||
-- cmd = "<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
|
||||
-- },
|
||||
-- ["<leader>cs"] = {
|
||||
-- cmd = "<cmd>Trouble symbols toggle focus=false<cr>",
|
||||
-- },
|
||||
["<leader>x"] = {
|
||||
cmd = "<cmd>Trouble diagnostics toggle<cr>",
|
||||
},
|
||||
["<leader>ls"] = {
|
||||
cmd = "<cmd>Trouble symbols toggle focus=false<cr>",
|
||||
},
|
||||
-- Stick with using the references feature fom lspsaga for now, might change later
|
||||
-- ["<leader>cl"] = {
|
||||
-- cmd = "<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
|
||||
-- },
|
||||
-- ["<leader>xL"] = {
|
||||
-- cmd = "<cmd>Trouble loclist toggle<cr>",
|
||||
-- },
|
||||
-- ["<leader>xQ"] = {
|
||||
-- cmd = "<cmd>Trouble qflist toggle<cr>",
|
||||
-- },
|
||||
["<leader>ll"] = {
|
||||
cmd = "<cmd>Trouble loclist toggle<cr>",
|
||||
},
|
||||
["<leader>lq"] = {
|
||||
cmd = "<cmd>Trouble qflist toggle<cr>",
|
||||
},
|
||||
}
|
||||
})
|
||||
}
|
||||
end
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue