i dont want to just type each plugin name in the import list
This commit is contained in:
parent
0e214b7d96
commit
c25f5b6839
1 changed files with 5 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue