Add NeoVim keybinds

This commit is contained in:
Vili Sinervä 2025-01-04 16:03:02 +02:00
parent e3cd239da3
commit 79d579f90d
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996

View file

@ -68,10 +68,21 @@ in
{ {
key = "T"; key = "T";
action = "<cmd>Neotree<cr>"; action = "<cmd>Neotree<cr>";
options = { options.desc = "Open Neotree";
silent = true; }
desc = "Open Neotree"; {
}; mode = [
"i"
"v"
];
key = "<C-c>";
action = "<Esc>";
options.desc = "Exit To Normal Mode";
}
{
key = "<leader>b";
action = "<cmd>Gitsigns toggle_current_line_blame<cr>";
options.desc = "Toggle Current Line Git Blame";
} }
]; ];
@ -163,6 +174,7 @@ in
lsp = { lsp = {
enable = true; enable = true;
inlayHints = true;
keymaps = { keymaps = {
diagnostic = { diagnostic = {
"<leader>j" = { "<leader>j" = {
@ -204,6 +216,13 @@ in
desc = "Hover"; desc = "Hover";
}; };
}; };
extra = [
{
action.__raw = "vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())";
key = "<leader>i";
options.desc = "Toggle LSP Inlay Hints";
}
];
}; };
servers = { servers = {
clangd.enable = true; clangd.enable = true;
@ -225,6 +244,7 @@ in
}; };
lsp-format.enable = true; lsp-format.enable = true;
lsp-lines.enable = true; lsp-lines.enable = true;
lsp-signature.enable = true;
}; };
}; };
} }