Merge pull request #548 from LilleAila/markdown-prettier-formatter

languages/markdown: add prettierd formatter
This commit is contained in:
raf 2025-01-11 17:36:01 +03:00 committed by GitHub
commit a5a5aba34a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View file

@ -51,3 +51,4 @@
- Remove `vim.notes.obsidian.setupOpts.dir`, which was set by default. Fixes
issue with setting the workspace directory.
- Add `"prettierd"` as a formatter option in `vim.languages.markdown.format.type`.

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 = {