feat(nvf): add some vim options
This commit is contained in:
parent
e1e89b0b16
commit
b99c94c4d0
3 changed files with 20 additions and 8 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
8
modules/home/cli/editor/nvf/options.nix
Normal file
8
modules/home/cli/editor/nvf/options.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
autoindent = true;
|
||||
smartindent = true;
|
||||
expandtab = true;
|
||||
tabstop = 2;
|
||||
shiftwidth = 2;
|
||||
backspace = "indent,eol,start";
|
||||
}
|
10
modules/home/cli/editor/nvf/utility.nix
Normal file
10
modules/home/cli/editor/nvf/utility.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
yazi-nvim = {
|
||||
enable = true;
|
||||
mappings = {
|
||||
openYazi = "t";
|
||||
openYaziDir = "T";
|
||||
};
|
||||
setupOpts.open_for_directories = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue