Skip to content

Commit

Permalink
languages/markdown: convert extra ft list to lua table
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAShelf committed May 7, 2024
1 parent 41f7abc commit ea5f229
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/plugins/languages/markdown.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
table.insert(
ls_sources,
null_ls.builtins.formatting.deno_fmt.with({
filetypes = ${concatLists cfg.format.extraFiletypes ["markdown"]},
filetypes = ${expToLua (concatLists [cfg.format.extraFiletypes ["markdown"]])},
command = "${cfg.format.package}/bin/deno",
})
)
Expand Down Expand Up @@ -81,21 +81,21 @@ in {
enable = mkEnableOption "Markdown formatting" // {default = config.vim.languages.enableFormat;};

type = mkOption {
description = "Markdown formatter to use";
type = enum (attrNames formats);
default = defaultFormat;
description = "Markdown formatter to use";
};

package = mkOption {
description = "Markdown formatter package";
type = package;
default = formats.${cfg.format.type}.package;
description = "Markdown formatter package";
};

extraFiletypes = mkOption {
description = "Extra filetypes to format with the Markdown formatter";
type = listOf str;
default = [];
description = "Extra filetypes to format with the Markdown formatter";
};
};
};
Expand Down

0 comments on commit ea5f229

Please sign in to comment.