From 632ba972fe5f431f850c08b1d8087e43bdc7ad90 Mon Sep 17 00:00:00 2001 From: Saeed Afzal Date: Tue, 27 Sep 2022 15:02:14 +0100 Subject: [PATCH] Add lsp key bindings --- lua/plugins/config/whichkey.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lua/plugins/config/whichkey.lua b/lua/plugins/config/whichkey.lua index 97437e7..3a27b1b 100644 --- a/lua/plugins/config/whichkey.lua +++ b/lua/plugins/config/whichkey.lua @@ -50,6 +50,16 @@ wk.register({ t = { "TroubleToggle", "toggle trouble" } }, + g = { + d = { "lua vim.lsp.buf.definition()", "definition" }, + D = { "lua vim.lsp.buf.declaration()", "declaration" }, + i = { "lua vim.lsp.buf.implementation()", "implementation" }, + t = { "lua vim.lsp.buf.type_definition()", "type definition" } + }, + + K = { "lua vim.lsp.buf.hover()", "hover" }, + [""] = { "lua vim.lsp.buf.signature_help()", "signature help" }, + -- Nvim Tree [""] = { "NvimTreeToggle", "toggle nvimtree" },