nvf changes
This commit is contained in:
parent
86977f4ecf
commit
719c8842c3
42 changed files with 261 additions and 154 deletions
|
@ -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 = ./.;})
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue