nixvim(lsp): add keybinds for hover, next error, etc

This commit is contained in:
Khaïs COLIN 2024-07-27 16:41:19 +02:00
parent 0e35d3f1fc
commit b6a0ecae2d
2 changed files with 15 additions and 1 deletions

2
flake.lock generated
View file

@ -315,7 +315,7 @@
}, },
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-qIze//rcbqR1WxlONQNikWyyizNP1XzVATZOP2lJjIc=", "narHash": "sha256-4s8+JKzXZzf25pCk5H0Kc67AbCuBuaTsTezlqiJzFrs=",
"path": "./nixvim", "path": "./nixvim",
"type": "path" "type": "path"
}, },

View file

@ -5,5 +5,19 @@
servers = { servers = {
nixd.enable = true; nixd.enable = true;
}; };
keymaps = {
diagnostic = {
"<C-n>" = "goto_next";
"<C-p>" = "goto_prev";
};
lspBuf = {
"K" = "hover";
"gD" = "references";
"gd" = "definition";
"gi" = "implementation";
"gt" = "type_definition";
"<C-,>" = "code_action";
};
};
}; };
} }