feat(nvim): improve/add keybindings

This commit is contained in:
Moritz Böhme 2023-04-10 15:14:04 +02:00
parent 5fc963c537
commit 2af3432410
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
4 changed files with 24 additions and 14 deletions

View file

@ -145,7 +145,6 @@ local on_attach_def = function(_, bufnr)
K = { "<cmd>Lspsaga hover_doc ++quiet<cr>", "show info" },
["<leader>"] = {
l = {
name = "lsp",
d = { "<cmd>Lspsaga show_cursor_diagnostics<cr>", "open diagnostic window" },
c = { "<cmd>Lspsaga code_action<cr>", "code action" },
r = { "<cmd>Lspsaga rename<cr>", "rename" },
@ -159,12 +158,10 @@ local on_attach_def = function(_, bufnr)
},
},
t = {
name = "toggle",
l = { lsp_lines.toggle, "lsp lines" },
},
},
g = {
name = "goto",
d = { "<cmd>Lspsaga peek_definition<cr>", "Goto definition" },
t = { "<cmd>Lspsaga peek_type_definition<cr>", "Goto type defininition" },
h = { "<cmd>Lspsaga lsp_finder<CR>", "Lsp finder" },