mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 10:48:35 +02:00
plugins/nvim-tree: use iconsPackage
This commit is contained in:
parent
150c5f454b
commit
d3e387899f
2 changed files with 14 additions and 3 deletions
|
@ -41,6 +41,11 @@ in
|
|||
|
||||
package = helpers.mkPluginPackageOption "nvim-tree" pkgs.vimPlugins.nvim-tree-lua;
|
||||
|
||||
iconsPackage = helpers.mkPackageOption {
|
||||
name = "nvim-web-devicons";
|
||||
default = pkgs.vimPlugins.nvim-web-devicons;
|
||||
};
|
||||
|
||||
disableNetrw = helpers.defaultNullOpts.mkBool false "Disable netrw";
|
||||
|
||||
hijackNetrw = helpers.defaultNullOpts.mkBool true "Hijack netrw";
|
||||
|
@ -1154,10 +1159,9 @@ in
|
|||
'';
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
extraPlugins = [
|
||||
cfg.package
|
||||
nvim-web-devicons
|
||||
];
|
||||
] ++ lib.optional (cfg.iconsPackage != null) cfg.iconsPackage;
|
||||
|
||||
autoCmd =
|
||||
(optional autoOpenEnabled {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue