Finalize NeoVim keybinds for now

This commit is contained in:
Vili Sinervä 2025-01-04 17:41:19 +02:00
parent e79a9b39ac
commit fbacca3f28
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996

View file

@ -86,7 +86,6 @@ in
}
];
# TODO Check LSP code actions
plugins = {
fugitive.enable = true;
gitsigns = {
@ -177,41 +176,53 @@ in
inlayHints = true;
keymaps = {
diagnostic = {
"<leader>j" = {
"<leader>dj" = {
action = "goto_next";
desc = "Next Diagnostic";
};
"<leader>k" = {
"<leader>dk" = {
action = "goto_prev";
desc = "Previous Diagnostic";
};
"<leader>K" = {
"<leader>dh" = {
action = "open_float";
desc = "Line Diagnostics";
};
};
lspBuf = {
gd = {
"<leader>gd" = {
action = "definition";
desc = "Goto Definition";
};
gr = {
"<leader>gr" = {
action = "references";
desc = "Goto References";
};
gD = {
"<leader>gD" = {
action = "declaration";
desc = "Goto Declaration";
};
gI = {
"<leader>gi" = {
action = "implementation";
desc = "Goto Implementation";
};
gT = {
"<leader>gt" = {
action = "type_definition";
desc = "Type Definition";
};
K = {
"<leader>s" = {
action = "workspace_symbol";
desc = "Search Symbol";
};
"<leader>r" = {
action = "rename";
desc = "Rename Symbol";
};
"<leader>a" = {
action = "code_action";
desc = "Code Action";
};
H = {
action = "hover";
desc = "Hover";
};