mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
helpers/vim-plugin/mkVimPlugin: rename addExtraConfigRenameWarning to deprecateExtraConfig
This commit is contained in:
parent
7af65ccae4
commit
cef446a4da
15 changed files with 17 additions and 16 deletions
|
@ -8,6 +8,8 @@ with lib; {
|
|||
namespace ? "plugins",
|
||||
maintainers ? [],
|
||||
imports ? [],
|
||||
# deprecations
|
||||
deprecateExtraConfig ? false,
|
||||
# options
|
||||
originalName ? name,
|
||||
defaultPackage ? null,
|
||||
|
@ -15,7 +17,6 @@ with lib; {
|
|||
settingsOptions ? {},
|
||||
settingsExample ? null,
|
||||
globalPrefix ? "",
|
||||
addExtraConfigRenameWarning ? false,
|
||||
extraOptions ? {},
|
||||
# config
|
||||
extraConfig ? cfg: {},
|
||||
|
@ -89,7 +90,7 @@ with lib; {
|
|||
|
||||
imports =
|
||||
imports
|
||||
++ optional (addExtraConfigRenameWarning && createSettingsOption) (
|
||||
++ optional (deprecateExtraConfig && createSettingsOption) (
|
||||
mkRenamedOptionModule
|
||||
["plugins" name "extraConfig"]
|
||||
["plugins" name "settings"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue