mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-22 11:45:28 +02:00
treewide: use mkWarnings where possible
This commit is contained in:
parent
abba4af10b
commit
12e658eca8
34 changed files with 309 additions and 225 deletions
|
@ -467,11 +467,16 @@ in
|
|||
{
|
||||
enable = mkOverride 1490 true;
|
||||
};
|
||||
warnings = lib.optional (
|
||||
warnings = lib.nixvim.mkWarnings "plugins.ltex-extra" {
|
||||
# https://nvimdev.github.io/lspsaga/implement/#default-options
|
||||
(isBool cfg.implement.enable && cfg.implement.enable)
|
||||
&& (isBool cfg.symbolInWinbar.enable && !cfg.symbolInWinbar.enable)
|
||||
) "You have enabled the `implement` module but it requires `symbolInWinbar` to be enabled.";
|
||||
when =
|
||||
(isBool cfg.implement.enable && cfg.implement.enable)
|
||||
&& (isBool cfg.symbolInWinbar.enable && !cfg.symbolInWinbar.enable);
|
||||
|
||||
message = ''
|
||||
You have enabled the `implement` module but it requires `symbolInWinbar` to be enabled.
|
||||
'';
|
||||
};
|
||||
|
||||
extraPlugins = [ cfg.package ];
|
||||
extraConfigLua =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue