mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
languages/markdown: convert extra ft list to lua table
This commit is contained in:
parent
41f7abcdc3
commit
ea5f229efd
1 changed files with 4 additions and 4 deletions
|
@ -39,7 +39,7 @@
|
||||||
table.insert(
|
table.insert(
|
||||||
ls_sources,
|
ls_sources,
|
||||||
null_ls.builtins.formatting.deno_fmt.with({
|
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",
|
command = "${cfg.format.package}/bin/deno",
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
@ -81,21 +81,21 @@ in {
|
||||||
enable = mkEnableOption "Markdown formatting" // {default = config.vim.languages.enableFormat;};
|
enable = mkEnableOption "Markdown formatting" // {default = config.vim.languages.enableFormat;};
|
||||||
|
|
||||||
type = mkOption {
|
type = mkOption {
|
||||||
description = "Markdown formatter to use";
|
|
||||||
type = enum (attrNames formats);
|
type = enum (attrNames formats);
|
||||||
default = defaultFormat;
|
default = defaultFormat;
|
||||||
|
description = "Markdown formatter to use";
|
||||||
};
|
};
|
||||||
|
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
description = "Markdown formatter package";
|
|
||||||
type = package;
|
type = package;
|
||||||
default = formats.${cfg.format.type}.package;
|
default = formats.${cfg.format.type}.package;
|
||||||
|
description = "Markdown formatter package";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraFiletypes = mkOption {
|
extraFiletypes = mkOption {
|
||||||
description = "Extra filetypes to format with the Markdown formatter";
|
|
||||||
type = listOf str;
|
type = listOf str;
|
||||||
default = [];
|
default = [];
|
||||||
|
description = "Extra filetypes to format with the Markdown formatter";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue