mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
15 lines
328 B
Nix
15 lines
328 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);
|
|
}
|