misc: import nixvim modules in a simpler way

This commit is contained in:
Gaetan Lepage 2024-02-08 14:14:25 +01:00 committed by Gaétan Lepage
parent ec07263b16
commit eec8d6b1b2
2 changed files with 24 additions and 14 deletions

View file

@ -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";
@ -21,9 +14,8 @@
};
};
};
in
nixvimModules
++ [
in [
../modules
nixpkgsMaintainersList
nixvimExtraArgsModule
];

18
modules/default.nix Normal file
View file

@ -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
];
}