diff options
Diffstat (limited to 'modules/by-name/nv/nvim/module.nix')
| -rw-r--r-- | modules/by-name/nv/nvim/module.nix | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/modules/by-name/nv/nvim/module.nix b/modules/by-name/nv/nvim/module.nix index 819646d6..81d7febf 100644 --- a/modules/by-name/nv/nvim/module.nix +++ b/modules/by-name/nv/nvim/module.nix @@ -12,17 +12,26 @@ lib, config, modules, + libraries, ... }: let cfg = config.soispha.programs.nvim; + + plgs = builtins.attrValues (libraries.extra.mkByName { + useShards = false; + baseDirectory = ./plgs; + fileName = "default.nix"; + }); in { - imports = [ - ./autocmds - ./clipboard - ./mappings - ./options - ./plgs - ]; + imports = + [ + ./autocmds + ./clipboard + ./mappings + ./options + ./performance + ] + ++ plgs; options.soispha.programs.nvim = { enable = lib.mkEnableOption "custom nvim config"; @@ -35,7 +44,7 @@ in { config = lib.mkIf cfg.enable { home-manager.users.soispha = { imports = [ - modules.nixvim.homeManagerModules.nixvim + modules.nixvim.homeModules.nixvim ]; home.sessionVariables = { @@ -43,6 +52,7 @@ in { VISUAL = "nvim"; CODEEDITOR = "nvim"; }; + programs.nixvim = { enable = true; @@ -63,21 +73,21 @@ in { --------------------------------------------------------------------------- ''; - extraPackages = with pkgs; [ + extraPackages = [ /* These are mostly linters and formatters used for different file types. Including them here is fine, as they are not necessarily-sync able to different people. */ # nix - alejandra - statix + pkgs.alejandra + pkgs.statix # yaml - yamllint + pkgs.yamllint # shell - shellcheck - shfmt + pkgs.shellcheck + pkgs.shfmt ]; }; }; |
