plugins/markdown-preview: move deprecations to separate file

This commit is contained in:
Austin Horstman 2025-01-23 19:54:45 -06:00
parent c269e1b967
commit ff7570d781
No known key found for this signature in database
2 changed files with 31 additions and 27 deletions

View file

@ -14,33 +14,6 @@ lib.nixvim.plugins.mkVimPlugin {
maintainers = [ lib.maintainers.GaetanLepage ];
# TODO introduced 2024-03-02: remove 2024-05-02
deprecateExtraConfig = true;
optionsRenamedToSettings = [
"autoStart"
"autoClose"
"refreshSlow"
"commandForGlobal"
"openToTheWorld"
"openIp"
"browser"
"echoPreviewUrl"
"previewOptions"
"markdownCss"
"highlightCss"
"port"
"pageTitle"
"theme"
{
old = "fileTypes";
new = "filetypes";
}
{
old = "browserFunc";
new = "browserfunc";
}
];
settingsOptions = {
auto_start = defaultNullOpts.mkFlagInt 0 ''
Open the preview window after entering the markdown buffer.
@ -216,4 +189,6 @@ lib.nixvim.plugins.mkVimPlugin {
page_title = "\$\{name}";
theme = "dark";
};
inherit (import ./deprecations.nix) deprecateExtraConfig optionsRenamedToSettings;
}

View file

@ -0,0 +1,29 @@
{
# TODO introduced 2024-03-02: remove 2024-05-02
deprecateExtraConfig = true;
optionsRenamedToSettings = [
"autoStart"
"autoClose"
"refreshSlow"
"commandForGlobal"
"openToTheWorld"
"openIp"
"browser"
"echoPreviewUrl"
"previewOptions"
"markdownCss"
"highlightCss"
"port"
"pageTitle"
"theme"
{
old = "fileTypes";
new = "filetypes";
}
{
old = "browserFunc";
new = "browserfunc";
}
];
}