2024-07-14 20:30:12 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib.modules) mkIf;
|
|
|
|
|
|
|
|
cfg = config.vim.filetree.neo-tree;
|
|
|
|
in {
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
vim = {
|
|
|
|
startPlugins = [
|
|
|
|
# dependencies
|
|
|
|
"plenary-nvim" # commons library
|
|
|
|
"image-nvim" # optional for image previews
|
|
|
|
"nui-nvim" # ui library
|
|
|
|
# neotree
|
|
|
|
"neo-tree-nvim"
|
|
|
|
];
|
|
|
|
|
2024-10-06 20:51:33 +02:00
|
|
|
lazy.plugins = [
|
|
|
|
{
|
|
|
|
package = "neo-tree-nvim";
|
|
|
|
setupModule = "neo-tree";
|
|
|
|
inherit (cfg) setupOpts;
|
|
|
|
|
|
|
|
cmd = ["Neotree"];
|
|
|
|
}
|
|
|
|
];
|
2024-10-04 16:00:17 +02:00
|
|
|
|
2024-10-06 20:51:33 +02:00
|
|
|
visuals.nvimWebDevicons.enable = true;
|
2024-07-14 20:30:12 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|