mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Revert "perf(markdown): only run markdownlint-cli2 formatter when there are markdownlint diagnostics for the buffer"
This reverts commit 8a6875ab3b.
This commit is contained in:
parent
12818a6cb4
commit
0c5f58f699
1 changed files with 0 additions and 8 deletions
|
|
@ -24,14 +24,6 @@ return {
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
["markdownlint-cli2"] = {
|
|
||||||
condition = function(_, ctx)
|
|
||||||
local diag = vim.tbl_filter(function(d)
|
|
||||||
return d.source == "markdownlint"
|
|
||||||
end, vim.diagnostic.get(ctx.buf))
|
|
||||||
return #diag > 0
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
["markdown"] = { "prettier", "markdownlint-cli2", "markdown-toc" },
|
["markdown"] = { "prettier", "markdownlint-cli2", "markdown-toc" },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue