nixvim(lsp): add keybinds for hover, next error, etc
This commit is contained in:
parent
0e35d3f1fc
commit
b6a0ecae2d
2 changed files with 15 additions and 1 deletions
2
flake.lock
generated
2
flake.lock
generated
|
|
@ -315,7 +315,7 @@
|
|||
},
|
||||
"locked": {
|
||||
"lastModified": 1,
|
||||
"narHash": "sha256-qIze//rcbqR1WxlONQNikWyyizNP1XzVATZOP2lJjIc=",
|
||||
"narHash": "sha256-4s8+JKzXZzf25pCk5H0Kc67AbCuBuaTsTezlqiJzFrs=",
|
||||
"path": "./nixvim",
|
||||
"type": "path"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -5,5 +5,19 @@
|
|||
servers = {
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue