i dont want to just type each plugin name in the import list

This commit is contained in:
Osman Faruk Bayram 2025-06-19 02:53:07 +03:00
parent 0e214b7d96
commit c25f5b6839

View file

@ -1,16 +1,8 @@
{ {lib, ...}:{
# settings of these plugins live in their respective files imports = lib.mapAttrsToList (name: path: ./. + "/${name}")
imports = [ (lib.filterAttrs (filename: kind:
./blink-cmp.nix filename != "default.nix" && (kind == "regular" || kind == "directory"))
./cmp.nix (builtins.readDir ./.));
./comment.nix
./gitsigns.nix
./lsp.nix
./mini.nix
./oil.nix
./treesitter.nix
./which-key.nix
];
plugins = { plugins = {
# todo comments highlighter # todo comments highlighter