Skip to content

Commit

Permalink
Merge pull request #498 from NotAShelf/fix-mdpw-ft
Browse files Browse the repository at this point in the history
preview/markdown-preview: convert `mkdp_filetypes` to correct format
  • Loading branch information
NotAShelf authored Dec 20, 2024
2 parents 5c69fbd + af31021 commit 52042f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/plugins/utility/preview/markdown-preview/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
lib,
...
}: let
inherit (lib.strings) concatMapStringsSep;
inherit (lib.modules) mkIf;

cfg = config.vim.utility.preview.markdownPreview;
in {
config = mkIf cfg.enable {
Expand All @@ -15,7 +15,7 @@ in {
mkdp_auto_start = cfg.autoStart;
mkdp_auto_close = cfg.autoClose;
mkdp_refresh_slow = cfg.lazyRefresh;
mkdp_filetypes = [(concatMapStringsSep ", " (x: "'" + x + "'") cfg.filetypes)];
mkdp_filetypes = cfg.filetypes;
mkdp_command_for_global = cfg.alwaysAllowPreview;
mkdp_open_to_the_world = cfg.broadcastServer;
mkdp_open_ip = cfg.customIP;
Expand Down

0 comments on commit 52042f6

Please sign in to comment.