From 8531576b94e2929ac7b3cbb73d967a204dd77c7c Mon Sep 17 00:00:00 2001 From: Alejandro Angulo Date: Mon, 3 Jun 2024 16:32:54 -0700 Subject: [PATCH] Added more lsp keybindings --- config/plugins/lsp.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/config/plugins/lsp.nix b/config/plugins/lsp.nix index 1b3bbda..2b22cd3 100644 --- a/config/plugins/lsp.nix +++ b/config/plugins/lsp.nix @@ -15,8 +15,28 @@ action = "LspRestart"; key = "lr"; } + { + action = "split | lua vim.lsp.buf.definition()"; + key = "gs"; + } + { + action = "vsplit | lua vim.lsp.buf.definition()"; + key = "gv"; + } + { + action = "tab split | lua vim.lsp.buf.definition()"; + key = "gn"; + } ]; + keymaps.lspBuf = { + "K" = "hover"; + "gD" = "references"; + "gd" = "definition"; + "gi" = "implementation"; + "gt" = "type_definition"; + }; + servers = { # python ruff.enable = true;