plugins/image: migrate to mkNeovimPlugin

This commit is contained in:
Gaetan Lepage 2025-03-20 13:33:28 +01:00 committed by Gaétan Lepage
parent c5967bf6a5
commit 279d2570b5
3 changed files with 157 additions and 157 deletions

View file

@ -0,0 +1,21 @@
lib: {
deprecateExtraOptions = true;
optionsRenamedToSettings = [
"backend"
"maxWidth"
"maxHeight"
"maxWidthWindowPercentage"
"maxHeightWindowPercentage"
"windowOverlapClearEnabled"
"windowOverlapClearFtIgnore"
"editorOnlyRenderWhenFocused"
"tmuxShowOnlyInActiveWindow"
"hijackFilePatterns"
];
imports = [
(lib.mkRemovedOptionModule [ "plugins" "image" "integrations" ] ''
Nixvim(plugins.image): The option `integrations` has been renamed to `settings.integrations`.
Warning: sub-options now have the same name as upstream (`clear_in_insert_mode`...).
'')
];
}