mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-03 22:04:31 +02:00
plugins/trouble: use iconsPackage
This commit is contained in:
parent
4acf12c49d
commit
150c5f454b
2 changed files with 18 additions and 2 deletions
|
@ -11,8 +11,6 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
originalName = "trouble-nvim";
|
||||
defaultPackage = pkgs.vimPlugins.trouble-nvim;
|
||||
|
||||
extraPlugins = with pkgs.vimPlugins; [ nvim-web-devicons ];
|
||||
|
||||
maintainers = [ maintainers.loicreynier ];
|
||||
|
||||
# TODO introduced 2024-03-15: remove 2024-05-15
|
||||
|
@ -302,4 +300,15 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
Enabling this will use the signs defined in your lsp client
|
||||
'';
|
||||
};
|
||||
|
||||
extraOptions = {
|
||||
iconsPackage = helpers.mkPackageOption {
|
||||
name = "nvim-web-devicons";
|
||||
default = pkgs.vimPlugins.nvim-web-devicons;
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
extraPlugins = mkIf (cfg.iconsPackage != null) [ cfg.iconsPackage ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue