mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-15 03:34:31 +02:00
plugins/nvim-lsp: let keymaps actions be attrs
This commit is contained in:
parent
54ebe3b0ee
commit
71c0b4cb59
2 changed files with 29 additions and 22 deletions
|
@ -11,7 +11,10 @@
|
|||
silent = true;
|
||||
diagnostic = {
|
||||
"<leader>k" = "goto_prev";
|
||||
"<leader>j" = "goto_next";
|
||||
"<leader>j" = {
|
||||
action = "goto_next";
|
||||
desc = "Go to next diagnostic";
|
||||
};
|
||||
};
|
||||
|
||||
lspBuf = {
|
||||
|
@ -19,7 +22,10 @@
|
|||
"gD" = "references";
|
||||
"gt" = "type_definition";
|
||||
"gi" = "implementation";
|
||||
"K" = "hover";
|
||||
"K" = {
|
||||
action = "hover";
|
||||
desc = "Hover";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue