feat: add markdown linting/formatting

This commit is contained in:
Devin Haska 2024-06-05 12:43:21 -07:00
parent 41367e3235
commit 4aed78a5b3
No known key found for this signature in database
3 changed files with 16 additions and 2 deletions

View file

@ -6,6 +6,7 @@ return {
scss = { "prettierd" }, scss = { "prettierd" },
html = { "djlint" }, html = { "djlint" },
lua = { "stylelua" }, lua = { "stylelua" },
markdown = { "prettierd" },
javascript = { "prettierd" }, javascript = { "prettierd" },
javascriptreact = { "prettierd" }, javascriptreact = { "prettierd" },
json = { "prettierd" }, json = { "prettierd" },

View file

@ -1,4 +1,4 @@
return { return { {
"mfussenegger/nvim-lint", "mfussenegger/nvim-lint",
opts = { opts = {
events = { "BufWritePost", "BufReadPost", "InsertLeave" }, events = { "BufWritePost", "BufReadPost", "InsertLeave" },
@ -23,4 +23,16 @@ return {
end, end,
}) })
end, end,
}, {
"jose-elias-alvarez/null-ls.nvim",
event = { "BufWritePost", "BufReadPost", "InsertLeave" },
opts = function()
local null_ls = require("null-ls")
local diagnostics = null_ls.builtins.diagnostics
return {
sources = {
diagnostics.vale,
} }
}
end
} }

View file

@ -22,6 +22,7 @@ return {
"eslint_d", "eslint_d",
"prettierd", "prettierd",
"stylua", "stylua",
"vale",
}, },
automatic_installation = true, automatic_installation = true,
} }