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
|
@ -166,10 +166,13 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
]
|
||||
];
|
||||
in
|
||||
lib.optional (definedOpts != [ ]) ''
|
||||
Nixvim(plugins.auto-save): The following settings options are no longer supported.
|
||||
Check the plugin documentation for more details.:
|
||||
${lib.concatMapStringsSep "\n" (opt: " - ${lib.showOption (lib.toList opt)}") definedOpts}
|
||||
'';
|
||||
lib.nixvim.mkWarnings "plugins.auto-save" {
|
||||
when = definedOpts != [ ];
|
||||
message = ''
|
||||
The following settings options are no longer supported.
|
||||
Check the plugin documentation for more details.:
|
||||
${lib.concatMapStringsSep "\n" (opt: " - ${lib.showOption (lib.toList opt)}") definedOpts}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue