feat(nvf): add some vim options

This commit is contained in:
Mohammad Rafiq 2025-05-20 15:50:53 +08:00
parent e1e89b0b16
commit b99c94c4d0
No known key found for this signature in database
3 changed files with 20 additions and 8 deletions

View file

@ -5,18 +5,12 @@
programs.nvf = {
enable = true;
settings.vim = {
options = import ./options.nix;
keymaps = import ./keymaps.nix;
lsp = import ./lsp.nix;
languages = import ./languages.nix;
autocomplete = import ./autocomplete.nix;
utility.yazi-nvim = {
enable = true;
mappings = {
openYazi = "t";
openYaziDir = "T";
};
setupOpts.open_for_directories = true;
};
utility = import ./utility.nix;
};
};
};

View file

@ -0,0 +1,8 @@
{
autoindent = true;
smartindent = true;
expandtab = true;
tabstop = 2;
shiftwidth = 2;
backspace = "indent,eol,start";
}

View file

@ -0,0 +1,10 @@
{
yazi-nvim = {
enable = true;
mappings = {
openYazi = "t";
openYaziDir = "T";
};
setupOpts.open_for_directories = true;
};
}