From e5782711482236da06abf2090e48740a167d4e61 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Tue, 22 Oct 2024 21:39:26 -0400 Subject: [PATCH] neovim: add lsp keymaps --- modules/home/all/neovim/default.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/modules/home/all/neovim/default.nix b/modules/home/all/neovim/default.nix index 6f4ae3f..1d2b937 100644 --- a/modules/home/all/neovim/default.nix +++ b/modules/home/all/neovim/default.nix @@ -73,9 +73,23 @@ in }; }; - # Dev + # LSP + # https://github.com/nix-community/nixvim/blob/main/plugins/lsp/default.nix lsp = { enable = true; + keymaps = { + lspBuf = { + "gd" = "definition"; + "gD" = "references"; + "gt" = "type_definition"; + "gi" = "implementation"; + "K" = "hover"; + }; + diagnostic = { + "k" = "goto_prev"; + "j" = "goto_next"; + }; + }; servers = { hls = { enable = true;