Add lsp key bindings

This commit is contained in:
Saeed Afzal
2022-09-27 15:02:14 +01:00
parent 160eedb189
commit 632ba972fe

View File

@@ -50,6 +50,16 @@ wk.register({
t = { "<cmd>TroubleToggle<CR>", "toggle trouble" } t = { "<cmd>TroubleToggle<CR>", "toggle trouble" }
}, },
g = {
d = { "<cmd>lua vim.lsp.buf.definition()<CR>", "definition" },
D = { "<cmd>lua vim.lsp.buf.declaration()<CR>", "declaration" },
i = { "<cmd>lua vim.lsp.buf.implementation()<CR>", "implementation" },
t = { "<cmd>lua vim.lsp.buf.type_definition()<CR>", "type definition" }
},
K = { "<cmd>lua vim.lsp.buf.hover()<CR>", "hover" },
["<C-k>"] = { "<cmd>lua vim.lsp.buf.signature_help()<CR>", "signature help" },
-- Nvim Tree -- Nvim Tree
["<C-n>"] = { "<cmd>NvimTreeToggle<CR>", "toggle nvimtree" }, ["<C-n>"] = { "<cmd>NvimTreeToggle<CR>", "toggle nvimtree" },