feat(formatting): markdown formatter
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user