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

View File

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