mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 17:03:31 +02:00
plugins/neo-tree: use iconsPackage
This commit is contained in:
parent
d3e387899f
commit
4ab24e77a5
2 changed files with 14 additions and 3 deletions
|
@ -57,6 +57,11 @@ in
|
||||||
|
|
||||||
package = helpers.mkPluginPackageOption "neo-tree" pkgs.vimPlugins.neo-tree-nvim;
|
package = helpers.mkPluginPackageOption "neo-tree" pkgs.vimPlugins.neo-tree-nvim;
|
||||||
|
|
||||||
|
iconsPackage = helpers.mkPackageOption {
|
||||||
|
name = "nvim-web-devicons";
|
||||||
|
default = pkgs.vimPlugins.nvim-web-devicons;
|
||||||
|
};
|
||||||
|
|
||||||
sources =
|
sources =
|
||||||
helpers.defaultNullOpts.mkListOf types.str
|
helpers.defaultNullOpts.mkListOf types.str
|
||||||
[
|
[
|
||||||
|
@ -1116,10 +1121,9 @@ in
|
||||||
// cfg.extraOptions;
|
// cfg.extraOptions;
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
extraPlugins = with pkgs.vimPlugins; [
|
extraPlugins = [
|
||||||
cfg.package
|
cfg.package
|
||||||
nvim-web-devicons
|
] ++ lib.optional (cfg.iconsPackage != null) cfg.iconsPackage;
|
||||||
];
|
|
||||||
|
|
||||||
extraConfigLua = ''
|
extraConfigLua = ''
|
||||||
require('neo-tree').setup(${helpers.toLuaObject setupOptions})
|
require('neo-tree').setup(${helpers.toLuaObject setupOptions})
|
||||||
|
|
|
@ -437,4 +437,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
no-packages = {
|
||||||
|
plugins.neo-tree = {
|
||||||
|
enable = true;
|
||||||
|
iconsPackage = null;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue