plugins/trouble: use iconsPackage

This commit is contained in:
Austin Horstman 2024-08-29 09:12:57 -05:00
parent 4acf12c49d
commit 150c5f454b
No known key found for this signature in database
2 changed files with 18 additions and 2 deletions

View file

@ -11,8 +11,6 @@ helpers.neovim-plugin.mkNeovimPlugin config {
originalName = "trouble-nvim"; originalName = "trouble-nvim";
defaultPackage = pkgs.vimPlugins.trouble-nvim; defaultPackage = pkgs.vimPlugins.trouble-nvim;
extraPlugins = with pkgs.vimPlugins; [ nvim-web-devicons ];
maintainers = [ maintainers.loicreynier ]; maintainers = [ maintainers.loicreynier ];
# TODO introduced 2024-03-15: remove 2024-05-15 # 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 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 ];
};
} }

View file

@ -77,4 +77,11 @@
}; };
}; };
}; };
no-packages = {
plugins.trouble = {
enable = true;
iconsPackage = null;
};
};
} }