mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-18 07:52:24 +00:00
languages/markdown: add prettierd formatter
This commit is contained in:
parent
4df1cc3a7f
commit
6e98b894b7
1 changed files with 12 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue