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;