mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-27 14:15:54 +02:00
16 lines
322 B
Nix
16 lines
322 B
Nix
{ lib, ... }:
|
|
let
|
|
inherit (builtins) readDir;
|
|
inherit (lib.attrsets) foldlAttrs;
|
|
inherit (lib.lists) optional;
|
|
by-name = ../plugins/by-name;
|
|
in
|
|
{
|
|
imports = [
|
|
../plugins
|
|
]
|
|
++ foldlAttrs (
|
|
prev: name: type:
|
|
prev ++ optional (type == "directory") (by-name + "/${name}")
|
|
) [ ] (readDir by-name);
|
|
}
|