neovim: add lsp keymaps

This commit is contained in:
Sridhar Ratnakumar 2024-10-22 21:39:26 -04:00
parent 8cefa57cee
commit e578271148
No known key found for this signature in database

View file

@ -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 = {
"<leader>k" = "goto_prev";
"<leader>j" = "goto_next";
};
};
servers = {
hls = {
enable = true;