feat(extras): switch to markdownlint-cli2

This commit is contained in:
Maximilian Stinsky 2024-06-28 11:12:05 +02:00
parent 87fe403df6
commit d637329a2a
No known key found for this signature in database

View file

@ -15,14 +15,14 @@ return {
optional = true, optional = true,
opts = { opts = {
formatters_by_ft = { formatters_by_ft = {
["markdown"] = { { "prettierd", "prettier" }, "markdownlint", "markdown-toc" }, ["markdown"] = { { "prettierd", "prettier" }, "markdownlint-cli2", "markdown-toc" },
["markdown.mdx"] = { { "prettierd", "prettier" }, "markdownlint", "markdown-toc" }, ["markdown.mdx"] = { { "prettierd", "prettier" }, "markdownlint-cli2", "markdown-toc" },
}, },
}, },
}, },
{ {
"williamboman/mason.nvim", "williamboman/mason.nvim",
opts = { ensure_installed = { "markdownlint", "markdown-toc" } }, opts = { ensure_installed = { "markdownlint-cli2", "markdown-toc" } },
}, },
{ {
"nvimtools/none-ls.nvim", "nvimtools/none-ls.nvim",
@ -30,7 +30,7 @@ return {
opts = function(_, opts) opts = function(_, opts)
local nls = require("null-ls") local nls = require("null-ls")
opts.sources = vim.list_extend(opts.sources or {}, { opts.sources = vim.list_extend(opts.sources or {}, {
nls.builtins.diagnostics.markdownlint, nls.builtins.diagnostics.markdownlint_cli2,
}) })
end, end,
}, },
@ -39,7 +39,7 @@ return {
optional = true, optional = true,
opts = { opts = {
linters_by_ft = { linters_by_ft = {
markdown = { "markdownlint" }, markdown = { "markdownlint-cli2" },
}, },
}, },
}, },