Skip to content

Commit

Permalink
misc: import nixvim modules in a simpler way
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Feb 9, 2024
1 parent ec07263 commit eec8d6b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
20 changes: 6 additions & 14 deletions flake-modules/modules.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
{modules, ...}: {
_module.args = let
nixvimModules = with builtins;
map
(f: ../modules + "/${f}")
(
attrNames (readDir ../modules)
);
in {
_module.args = {
modules = pkgs: let
nixpkgsMaintainersList = pkgs.path + "/nixos/modules/misc/meta.nix";

Expand All @@ -21,12 +14,11 @@
};
};
};
in
nixvimModules
++ [
nixpkgsMaintainersList
nixvimExtraArgsModule
];
in [
../modules
nixpkgsMaintainersList
nixvimExtraArgsModule
];
};

perSystem = {
Expand Down
18 changes: 18 additions & 0 deletions modules/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
imports = [
./autocmd.nix
./clipboard.nix
./colorscheme.nix
./commands.nix
./doc.nix
./editorconfig.nix
./filetype.nix
./highlights.nix
./keymaps.nix
./lua-loader.nix
./options.nix
./output.nix
./plugins.nix
./warnings.nix
];
}

0 comments on commit eec8d6b

Please sign in to comment.