diff options
Diffstat (limited to 'hm/editors')
| -rw-r--r-- | hm/editors/editors.nix | 2 | ||||
| -rw-r--r-- | hm/editors/nvf/nvf.nix (renamed from hm/editors/nvf.nix) | 28 |
2 files changed, 19 insertions, 11 deletions
diff --git a/hm/editors/editors.nix b/hm/editors/editors.nix index 02c349b..1dac436 100644 --- a/hm/editors/editors.nix +++ b/hm/editors/editors.nix @@ -3,6 +3,6 @@ imports = [ ./helix.nix ./nixvim/nixvim.nix - # ./nvf.nix + ./nvf/nvf.nix ]; } diff --git a/hm/editors/nvf.nix b/hm/editors/nvf/nvf.nix index 6da28fe..f9ba866 100644 --- a/hm/editors/nvf.nix +++ b/hm/editors/nvf/nvf.nix @@ -1,8 +1,16 @@ -{ inputs, config, lib, pkgs, ... }: +{ + inputs, + config, + lib, + pkgs, + ... +}: let cfg = config.hm.editors.nvf; in { + imports = [ inputs.nvf.homeManagerModules.default ]; + options.hm.editors.nvf.enable = lib.mkEnableOption "enables nvf configuration framework"; config = lib.mkIf cfg.enable { programs.nvf = { @@ -13,13 +21,13 @@ in viAlias = true; vimAlias = true; - + theme = { enable = true; name = "gruvbox"; style = "dark"; }; - + statusline = { lualine = { enable = true; @@ -27,19 +35,19 @@ in }; }; - autopairs.nvim-autopairs.enable = true; + autopairs.nvim-autopairs.enable = true; lsp.enable = true; - languages = { - nix = { - enable = true; - format = { + languages = { + nix = { enable = true; - type = "alejandra"; + format = { + enable = true; + type = "alejandra"; }; }; - clang.enable = true; + clang.enable = true; }; }; }; |
