From 8ff50562d7203a2b87bc6409e806f13b115d6b48 Mon Sep 17 00:00:00 2001 From: ppenguin Date: Wed, 30 Oct 2024 12:01:16 +0100 Subject: [PATCH] fix markdown-preview config error --- .../plugins/utility/preview/markdown-preview/config.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/plugins/utility/preview/markdown-preview/config.nix b/modules/plugins/utility/preview/markdown-preview/config.nix index 635a8a4..8349d3f 100644 --- a/modules/plugins/utility/preview/markdown-preview/config.nix +++ b/modules/plugins/utility/preview/markdown-preview/config.nix @@ -4,9 +4,8 @@ lib, ... }: let - inherit (lib.strings) stringLength concatMapStringsSep; + inherit (lib.strings) concatMapStringsSep; inherit (lib.modules) mkIf; - cfg = config.vim.utility.preview.markdownPreview; in { config = mkIf cfg.enable { @@ -19,8 +18,8 @@ in { mkdp_filetypes = [(concatMapStringsSep ", " (x: "'" + x + "'") cfg.filetypes)]; mkdp_command_for_global = cfg.alwaysAllowPreview; mkdp_open_to_the_world = cfg.broadcastServer; - mkdp_open_ip = mkIf (stringLength cfg.customIP > 0) cfg.customIP; - mkdp_port = mkIf (stringLength cfg.customPort > 0) cfg.customPort; + mkdp_open_ip = cfg.customIP; + mkdp_port = cfg.customPort; }; }; }