nvim: Add markdownlint diagnostics to md, quarto
Added markdownlint. Will be used by default on markdown and quarto filetypes.
This commit is contained in:
parent
29ff9db62b
commit
681e35b92c
1 changed files with 6 additions and 1 deletions
|
@ -159,7 +159,7 @@ end
|
||||||
local null_ls = require("null-ls")
|
local null_ls = require("null-ls")
|
||||||
null_ls.setup({})
|
null_ls.setup({})
|
||||||
require("mason-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,
|
automatic_installation = false,
|
||||||
handlers = {
|
handlers = {
|
||||||
shfmt = function(_, _)
|
shfmt = function(_, _)
|
||||||
|
@ -182,6 +182,11 @@ require("mason-null-ls").setup({
|
||||||
extra_filetypes = { "astro" },
|
extra_filetypes = { "astro" },
|
||||||
}))
|
}))
|
||||||
end,
|
end,
|
||||||
|
markdownlint = function(_, _)
|
||||||
|
null_ls.register(null_ls.builtins.diagnostics.markdownlint.with({
|
||||||
|
extra_filetypes = { "quarto" },
|
||||||
|
}))
|
||||||
|
end,
|
||||||
vale = function(_, _)
|
vale = function(_, _)
|
||||||
null_ls.register(null_ls.builtins.diagnostics.vale.with({
|
null_ls.register(null_ls.builtins.diagnostics.vale.with({
|
||||||
condition = function(utils)
|
condition = function(utils)
|
||||||
|
|
Loading…
Reference in a new issue