nvim: use unstable lspsaga
This commit is contained in:
parent
14b39fcd44
commit
17085b4a1b
4 changed files with 34 additions and 8 deletions
|
|
@ -277,6 +277,7 @@ local on_attach_def = function(_, bufnr)
|
|||
p = { "<cmd>Lspsaga diagnostic_jump_prev<CR>", "prev error" },
|
||||
c = { "<cmd>Lspsaga code_action<cr>", "code action" },
|
||||
r = { "<cmd>Lspsaga rename<cr>", "rename" },
|
||||
i = { "<cmd>Lspsaga hover_doc ++keep<cr>", "show info (sticky)" },
|
||||
f = {
|
||||
function()
|
||||
vim.lsp.buf.format({ async = true })
|
||||
|
|
@ -303,11 +304,9 @@ local on_attach_def = function(_, bufnr)
|
|||
},
|
||||
g = {
|
||||
name = "goto",
|
||||
r = { vim.lsp.buf.references, "references" },
|
||||
d = { "<cmd>Lspsaga peek_definition<cr>", "definition" },
|
||||
D = { vim.lsp.buf.declaration, "declaration" },
|
||||
i = { vim.lsp.buf.implementation, "implementation" },
|
||||
t = { "<cmd>Lspsaga peek_type_definition<cr>", "type defininition" },
|
||||
h = { "<cmd>Lspsaga lsp_finder<CR>", "lsp finder" },
|
||||
},
|
||||
}, { buffer = bufnr, silent = true })
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue