NixVim settings and keybinds for non LSP / auto-complete

This commit is contained in:
Vili Sinervä 2025-01-02 15:32:19 +02:00
parent dc50201410
commit 4f94626677
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996

View file

@ -70,44 +70,55 @@ in
action = "<cmd>Neotree<cr>"; action = "<cmd>Neotree<cr>";
options.silent = true; options.silent = true;
} }
{
key = "<C-h>";
action = "<cmd>TmuxNavigateLeft<cr>";
options.silent = true;
}
{
key = "<C-j>";
action = "<cmd>TmuxNavigateDown<cr>";
options.silent = true;
}
{
key = "<C-k>";
action = "<cmd>TmuxNavigateUp<cr>";
options.silent = true;
}
{
key = "<C-l>";
action = "<cmd>TmuxNavigateRight<cr>";
options.silent = true;
}
]; ];
# TODO Check desireable keybinds and commands for all plugins # TODO Check desireable keybinds and commands for all plugins
plugins = { plugins = {
fugitive.enable = true; fugitive.enable = true;
gitsigns.enable = true; gitsigns = {
lualine = {
enable = true; enable = true;
settings.options.iconsEnabled = false; settings = {
current_line_blame_opts.delay = 100;
numhl = true;
};
}; };
lualine.enable = true;
markdown-preview.enable = true; markdown-preview.enable = true;
neo-tree.enable = true; neo-tree = {
enable = true;
buffers.followCurrentFile = {
enabled = true;
leaveDirsOpen = true;
};
};
nix.enable = true; nix.enable = true;
rainbow-delimiters.enable = true; rainbow-delimiters.enable = true;
sleuth.enable = true; sleuth.enable = true;
tmux-navigator = { tmux-navigator = {
enable = true; enable = true;
settings.no_mappings = 1; settings.no_mappings = 1;
keymaps = [
{
key = "<C-h>";
action = "left";
#options.silent = true;
}
{
key = "<C-j>";
action = "down";
#options.silent = true;
}
{
key = "<C-k>";
action = "up";
#options.silent = true;
}
{
key = "<C-l>";
action = "right";
#options.silent = true;
}
];
}; };
treesitter = { treesitter = {
enable = true; enable = true;
@ -116,6 +127,9 @@ in
nixGrammars = true; nixGrammars = true;
}; };
web-devicons.enable = true; web-devicons.enable = true;
which-key = {
enable = true;
};
cmp = { cmp = {
enable = true; enable = true;