From 681e35b92c378a50e557d702c5ffae8923b5c812 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 5 Oct 2023 18:20:00 +0200 Subject: [PATCH] nvim: Add markdownlint diagnostics to md, quarto Added markdownlint. Will be used by default on markdown and quarto filetypes. --- nvim/.config/nvim/lua/plugins/config/lsp.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/plugins/config/lsp.lua b/nvim/.config/nvim/lua/plugins/config/lsp.lua index 93d7b4a..b537c7f 100644 --- a/nvim/.config/nvim/lua/plugins/config/lsp.lua +++ b/nvim/.config/nvim/lua/plugins/config/lsp.lua @@ -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)