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;