feat(formatting): markdown formatter

This commit is contained in:
Guz
2025-05-26 10:24:07 -03:00
parent 1c2195de1d
commit edfb970495
2 changed files with 8 additions and 1 deletions

View File

@@ -36,11 +36,11 @@ return {
sh = { "shellharden", "shfmt" },
xml = { "xmllint" },
xhtml = { "xmllint" },
markdown = { "mdfmt" },
html = { "prettierd", "prettier", stop_after_first = true },
css = { "prettierd", "prettier", stop_after_first = true },
yaml = { "prettierd", "prettier", stop_after_first = true },
markdown = { "prettierd", "prettier", stop_after_first = true },
-- Golang's formatters used by priority
go = function(bufnr)
@@ -83,6 +83,11 @@ return {
timeout_ms = 500,
lsp_format = "fallback",
},
formatters = {
mdfmt = {
command = "mdfmt",
},
},
})
end,
},

View File

@@ -3,6 +3,7 @@
lib,
neovim ? pkgs.neovim,
ripgrep ? pkgs.ripgrep,
mdfmt ? null,
go-grip ? null,
yazi ? pkgs.yazi,
...
@@ -94,6 +95,7 @@
alejandra
jq
libxml2
mdfmt
prettierd
shellharden
shfmt