languages/markdown: add prettierd formatter

This commit is contained in:
LilleAila 2025-01-11 12:48:41 +01:00
parent 4df1cc3a7f
commit 6e98b894b7
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799

View file

@ -46,6 +46,18 @@
)
'';
};
prettierd = {
package = pkgs.prettierd;
nullConfig = ''
table.insert(
ls_sources,
null_ls.builtins.formatting.prettierd.with({
filetypes = ${expToLua (concatLists [cfg.format.extraFiletypes ["markdown"]])},
command = "${cfg.format.package}/bin/prettierd",
})
)
'';
};
};
in {
options.vim.languages.markdown = {