mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-14 03:04:34 +02:00
plugins/bufferline: use iconsPackage
This commit is contained in:
parent
f59a3c70aa
commit
46cf3dad9f
2 changed files with 15 additions and 1 deletions
|
@ -654,8 +654,15 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin config {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraOptions = {
|
||||||
|
iconsPackage = lib.nixvim.mkPackageOption {
|
||||||
|
name = "nvim-web-devicons";
|
||||||
|
default = pkgs.vimPlugins.nvim-web-devicons;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
extraConfig = cfg: {
|
extraConfig = cfg: {
|
||||||
extraPlugins = with pkgs.vimPlugins; [ nvim-web-devicons ];
|
extraPlugins = lib.mkIf (cfg.iconsPackage != null) [ cfg.iconsPackage ];
|
||||||
|
|
||||||
opts.termguicolors = true;
|
opts.termguicolors = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -123,4 +123,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
no-packages = {
|
||||||
|
plugins.bufferline = {
|
||||||
|
enable = true;
|
||||||
|
iconsPackage = null;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue