mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-03 13:54:29 +02:00
plugins/chadtree: use iconsPackage
This commit is contained in:
parent
86d66e410a
commit
6f4eced1ca
2 changed files with 14 additions and 2 deletions
|
@ -16,6 +16,11 @@ in
|
||||||
|
|
||||||
package = helpers.mkPluginPackageOption "chadtree" pkgs.vimPlugins.chadtree;
|
package = helpers.mkPluginPackageOption "chadtree" pkgs.vimPlugins.chadtree;
|
||||||
|
|
||||||
|
iconsPackage = helpers.mkPackageOption {
|
||||||
|
name = "nvim-web-devicons";
|
||||||
|
default = pkgs.vimPlugins.nvim-web-devicons;
|
||||||
|
};
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
follow = helpers.defaultNullOpts.mkBool true ''
|
follow = helpers.defaultNullOpts.mkBool true ''
|
||||||
CHADTree will highlight currently open file, and open all its parents.
|
CHADTree will highlight currently open file, and open all its parents.
|
||||||
|
@ -495,8 +500,8 @@ in
|
||||||
extraPlugins =
|
extraPlugins =
|
||||||
[ cfg.package ]
|
[ cfg.package ]
|
||||||
++ (optional (
|
++ (optional (
|
||||||
cfg.theme == null || cfg.theme.iconGlyphSet == "devicons"
|
cfg.iconsPackage != null && (cfg.theme == null || cfg.theme.iconGlyphSet == "devicons")
|
||||||
) pkgs.vimPlugins.nvim-web-devicons);
|
) cfg.iconsPackage);
|
||||||
|
|
||||||
extraConfigLua = ''
|
extraConfigLua = ''
|
||||||
vim.api.nvim_set_var("chadtree_settings", ${helpers.toLuaObject setupOptions})
|
vim.api.nvim_set_var("chadtree_settings", ${helpers.toLuaObject setupOptions})
|
||||||
|
|
|
@ -132,4 +132,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
no-packages = {
|
||||||
|
plugins.chadtree = {
|
||||||
|
enable = true;
|
||||||
|
iconsPackage = null;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue