Skip to content

Commit

Permalink
feat(neovim): added first templates when is created a new file
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Dec 27, 2023
1 parent 2ffc41f commit 177540d
Show file tree
Hide file tree
Showing 6 changed files with 306 additions and 242 deletions.
8 changes: 4 additions & 4 deletions lib/imports.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{ lib, ... }: rec {
inherit (lib.attrsets) mapAttrsToList filterAttrs;
inherit (lib.lists) flatten;
inherit (lib.lists) flatten any;
inherit (lib.strings) hasSuffix hasPrefix;

importModulesPath = path:
flatten (mapAttrsToList
importModulesPath = path: builtins.filter (e: e != null)
(flatten (mapAttrsToList
(n: v:
let
newPath = "${path}/${n}";
Expand All @@ -15,5 +15,5 @@
then newPath
else null
else importModulesPath newPath)
(filterAttrs (n: v: n != "apps" && n != "utils") (builtins.readDir path)));
(filterAttrs (n: v: n != "apps" && n != "utils" && n != "plugins") (builtins.readDir path))));
}
Loading

0 comments on commit 177540d

Please sign in to comment.