nvf changes

This commit is contained in:
Charlie Root 2024-07-06 15:53:16 +02:00
commit 5548480371
42 changed files with 261 additions and 154 deletions

View file

@ -1,22 +1,22 @@
{
inputs,
lib,
...
inputs,
lib,
...
}: let
inherit (builtins) filter map toString elem;
inherit (lib.filesystem) listFilesRecursive;
inherit (lib.strings) hasSuffix;
inherit(lib.lists) concatLists;
inherit (lib.lists) concatLists;
mkNeovimModule ={
path,
mkNeovimModule = {
path,
ingoredPaths ? [./nvf.nix],
}:
filter (hasSuffix ".nix") (
map toString (
filter (path: path != ./default.nix && !elem path ingoredPaths) (listFilesRecursive path)
)
);
)
);
nvf = inputs.neovim-flake;
in {
@ -28,4 +28,4 @@ in {
# which means all default.nix files will be imported automtically
(mkNeovimModule {path = ./.;})
];
}
}