nvim: Add markdownlint diagnostics to md, quarto

Added markdownlint. Will be used by default on markdown and
quarto filetypes.
This commit is contained in:
Marty Oehme 2023-10-05 18:20:00 +02:00
parent 29ff9db62b
commit 681e35b92c
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -159,7 +159,7 @@ end
local null_ls = require("null-ls")
null_ls.setup({})
require("mason-null-ls").setup({
ensure_installed = { "black", "prettier", "shfmt", "eslint-lsp", "stylua", "jq", "vale" },
ensure_installed = { "black", "prettier", "shfmt", "eslint-lsp", "stylua", "jq", "vale", "markdownlint" },
automatic_installation = false,
handlers = {
shfmt = function(_, _)
@ -182,6 +182,11 @@ require("mason-null-ls").setup({
extra_filetypes = { "astro" },
}))
end,
markdownlint = function(_, _)
null_ls.register(null_ls.builtins.diagnostics.markdownlint.with({
extra_filetypes = { "quarto" },
}))
end,
vale = function(_, _)
null_ls.register(null_ls.builtins.diagnostics.vale.with({
condition = function(utils)