mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 22:09:48 +01:00
preview/markdown-preview: convert mkdp_filetypes
to correct format
This commit is contained in:
parent
a0a57757a0
commit
4f61628399
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.strings) concatMapStringsSep;
|
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
|
|
||||||
cfg = config.vim.utility.preview.markdownPreview;
|
cfg = config.vim.utility.preview.markdownPreview;
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
@ -15,7 +15,7 @@ in {
|
||||||
mkdp_auto_start = cfg.autoStart;
|
mkdp_auto_start = cfg.autoStart;
|
||||||
mkdp_auto_close = cfg.autoClose;
|
mkdp_auto_close = cfg.autoClose;
|
||||||
mkdp_refresh_slow = cfg.lazyRefresh;
|
mkdp_refresh_slow = cfg.lazyRefresh;
|
||||||
mkdp_filetypes = [(concatMapStringsSep ", " (x: "'" + x + "'") cfg.filetypes)];
|
mkdp_filetypes = cfg.filetypes;
|
||||||
mkdp_command_for_global = cfg.alwaysAllowPreview;
|
mkdp_command_for_global = cfg.alwaysAllowPreview;
|
||||||
mkdp_open_to_the_world = cfg.broadcastServer;
|
mkdp_open_to_the_world = cfg.broadcastServer;
|
||||||
mkdp_open_ip = cfg.customIP;
|
mkdp_open_ip = cfg.customIP;
|
||||||
|
|
Loading…
Reference in a new issue