diff --git a/modules/home/cli/editor/nvf/default.nix b/modules/home/cli/editor/nvf/default.nix index 7e72a7d..5f1fcfa 100644 --- a/modules/home/cli/editor/nvf/default.nix +++ b/modules/home/cli/editor/nvf/default.nix @@ -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; }; }; }; diff --git a/modules/home/cli/editor/nvf/options.nix b/modules/home/cli/editor/nvf/options.nix new file mode 100644 index 0000000..bbeed6f --- /dev/null +++ b/modules/home/cli/editor/nvf/options.nix @@ -0,0 +1,8 @@ +{ + autoindent = true; + smartindent = true; + expandtab = true; + tabstop = 2; + shiftwidth = 2; + backspace = "indent,eol,start"; +} diff --git a/modules/home/cli/editor/nvf/utility.nix b/modules/home/cli/editor/nvf/utility.nix new file mode 100644 index 0000000..585a30a --- /dev/null +++ b/modules/home/cli/editor/nvf/utility.nix @@ -0,0 +1,10 @@ +{ + yazi-nvim = { + enable = true; + mappings = { + openYazi = "t"; + openYaziDir = "T"; + }; + setupOpts.open_for_directories = true; + }; +}