mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-08 00:04:33 +02:00
treewide: consolidate iconsPackage removal and warning
This commit is contained in:
parent
38a183564b
commit
b473bdc5ae
12 changed files with 64 additions and 208 deletions
|
@ -12,20 +12,6 @@ let
|
|||
mkListStr = helpers.defaultNullOpts.mkNullable (types.listOf types.str);
|
||||
in
|
||||
{
|
||||
# TODO: added 2024-09-20 remove after 24.11
|
||||
imports = [
|
||||
(lib.mkRemovedOptionModule
|
||||
[
|
||||
"plugins"
|
||||
"chadtree"
|
||||
"iconsPackage"
|
||||
]
|
||||
''
|
||||
Please use `plugins.web-devicons` or `plugins.mini.modules.icons` with `plugins.mini.mockDevIcons` instead.
|
||||
''
|
||||
)
|
||||
];
|
||||
|
||||
options.plugins.chadtree = helpers.neovim-plugin.extraOptionsOptions // {
|
||||
enable = mkEnableOption "chadtree";
|
||||
|
||||
|
@ -526,17 +512,6 @@ in
|
|||
{
|
||||
enable = lib.mkOverride 1490 false;
|
||||
};
|
||||
warnings =
|
||||
optional
|
||||
(
|
||||
(cfg.theme == null || cfg.theme.iconGlyphSet == "devicons")
|
||||
|
||||
&& options.plugins.web-devicons.enable.highestPrio == 1490
|
||||
)
|
||||
''
|
||||
Nixvim (plugins.chadtree) `web-devicons` automatic installation is deprecated.
|
||||
Please use `plugins.web-devicons` or `plugins.mini.modules.icons` with `plugins.mini.mockDevIcons` instead.
|
||||
'';
|
||||
|
||||
extraPlugins = [ cfg.package ];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue