mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 00:55:58 +08:00
neovim: add lsp keymaps
This commit is contained in:
parent
8cefa57cee
commit
e578271148
1 changed files with 15 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue