mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +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;
|
||||
|
||||
iconsPackage = helpers.mkPackageOption {
|
||||
name = "nvim-web-devicons";
|
||||
default = pkgs.vimPlugins.nvim-web-devicons;
|
||||
};
|
||||
|
||||
sources =
|
||||
helpers.defaultNullOpts.mkListOf types.str
|
||||
[
|
||||
|
@ -1116,10 +1121,9 @@ in
|
|||
// cfg.extraOptions;
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
extraPlugins = [
|
||||
cfg.package
|
||||
nvim-web-devicons
|
||||
];
|
||||
] ++ lib.optional (cfg.iconsPackage != null) cfg.iconsPackage;
|
||||
|
||||
extraConfigLua = ''
|
||||
require('neo-tree').setup(${helpers.toLuaObject setupOptions})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue