neo-tree: lazy load

This commit is contained in:
Ching Pei Yang 2024-10-06 20:51:33 +02:00
parent 4701bb15c5
commit b7a34ad52b
No known key found for this signature in database
GPG key ID: 062FBBCE1D0C5DD9

View file

@ -4,8 +4,6 @@
... ...
}: let }: let
inherit (lib.modules) mkIf; inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.filetree.neo-tree; cfg = config.vim.filetree.neo-tree;
in { in {
@ -20,11 +18,17 @@ in {
"neo-tree-nvim" "neo-tree-nvim"
]; ];
visuals.nvimWebDevicons.enable = true; lazy.plugins = [
{
package = "neo-tree-nvim";
setupModule = "neo-tree";
inherit (cfg) setupOpts;
pluginRC.neo-tree = entryAnywhere '' cmd = ["Neotree"];
require("neo-tree").setup(${toLuaObject cfg.setupOpts}) }
''; ];
visuals.nvimWebDevicons.enable = true;
}; };
}; };
} }