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