mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
plugins/markdown-preview: move deprecations to separate file
This commit is contained in:
parent
c269e1b967
commit
ff7570d781
2 changed files with 31 additions and 27 deletions
|
@ -14,33 +14,6 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
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 = {
|
settingsOptions = {
|
||||||
auto_start = defaultNullOpts.mkFlagInt 0 ''
|
auto_start = defaultNullOpts.mkFlagInt 0 ''
|
||||||
Open the preview window after entering the markdown buffer.
|
Open the preview window after entering the markdown buffer.
|
||||||
|
@ -216,4 +189,6 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
page_title = "「\$\{name}」";
|
page_title = "「\$\{name}」";
|
||||||
theme = "dark";
|
theme = "dark";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inherit (import ./deprecations.nix) deprecateExtraConfig optionsRenamedToSettings;
|
||||||
}
|
}
|
||||||
|
|
29
plugins/by-name/markdown-preview/deprecations.nix
Normal file
29
plugins/by-name/markdown-preview/deprecations.nix
Normal 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";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue