mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/alpha: remove old deprecation warning
This commit is contained in:
parent
3896bc0e32
commit
edfb052c7e
1 changed files with 0 additions and 37 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
options,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
@ -62,13 +61,6 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: deprecated 2024-08-29 remove after 24.11
|
|
||||||
iconsEnabled = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
description = "Toggle icon support. Installs nvim-web-devicons.";
|
|
||||||
visible = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
theme = mkOption {
|
theme = mkOption {
|
||||||
type = with types; nullOr (maybeRaw str);
|
type = with types; nullOr (maybeRaw str);
|
||||||
apply = v: if lib.isString v then lib.nixvim.mkRaw "require'alpha.themes.${v}'.config" else v;
|
apply = v: if lib.isString v then lib.nixvim.mkRaw "require'alpha.themes.${v}'.config" else v;
|
||||||
|
|
@ -147,37 +139,8 @@ in
|
||||||
let
|
let
|
||||||
layoutDefined = cfg.layout != [ ];
|
layoutDefined = cfg.layout != [ ];
|
||||||
themeDefined = cfg.theme != null;
|
themeDefined = cfg.theme != null;
|
||||||
|
|
||||||
opt = options.plugins.alpha;
|
|
||||||
in
|
in
|
||||||
lib.mkIf cfg.enable {
|
lib.mkIf cfg.enable {
|
||||||
|
|
||||||
# TODO: added 2024-09-20 remove after 24.11
|
|
||||||
warnings = lib.nixvim.mkWarnings "plugins.alpha" {
|
|
||||||
when = opt.iconsEnabled.isDefined;
|
|
||||||
message = ''
|
|
||||||
The option definition `plugins.alpha.iconsEnabled' in ${lib.showFiles opt.iconsEnabled.files} has been deprecated; please remove it.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
plugins.web-devicons =
|
|
||||||
lib.mkIf
|
|
||||||
(
|
|
||||||
opt.iconsEnabled.isDefined
|
|
||||||
&& cfg.iconsEnabled
|
|
||||||
&& !(
|
|
||||||
(
|
|
||||||
config.plugins.mini.enable
|
|
||||||
&& config.plugins.mini.modules ? icons
|
|
||||||
&& config.plugins.mini.mockDevIcons
|
|
||||||
)
|
|
||||||
|| (config.plugins.mini-icons.enable && config.plugins.mini-icons.mockDevIcons)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
{
|
|
||||||
enable = lib.mkOverride 1490 true;
|
|
||||||
};
|
|
||||||
|
|
||||||
extraPlugins = [ cfg.package ];
|
extraPlugins = [ cfg.package ];
|
||||||
|
|
||||||
assertions = lib.nixvim.mkAssertions "plugins.alpha" [
|
assertions = lib.nixvim.mkAssertions "plugins.alpha" [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue