From ff7570d781f7ccd5a611008246ffa36627c9341e Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 23 Jan 2025 19:54:45 -0600 Subject: [PATCH] plugins/markdown-preview: move deprecations to separate file --- plugins/by-name/markdown-preview/default.nix | 29 ++----------------- .../by-name/markdown-preview/deprecations.nix | 29 +++++++++++++++++++ 2 files changed, 31 insertions(+), 27 deletions(-) create mode 100644 plugins/by-name/markdown-preview/deprecations.nix diff --git a/plugins/by-name/markdown-preview/default.nix b/plugins/by-name/markdown-preview/default.nix index e4299c90c4..184806800f 100644 --- a/plugins/by-name/markdown-preview/default.nix +++ b/plugins/by-name/markdown-preview/default.nix @@ -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; } diff --git a/plugins/by-name/markdown-preview/deprecations.nix b/plugins/by-name/markdown-preview/deprecations.nix new file mode 100644 index 0000000000..4fa80be681 --- /dev/null +++ b/plugins/by-name/markdown-preview/deprecations.nix @@ -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"; + } + ]; + +}