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" },
html = { "djlint" },
lua = { "stylelua" },
markdown = { "prettierd" },
javascript = { "prettierd" },
javascriptreact = { "prettierd" },
json = { "prettierd" },

View file

@ -1,4 +1,4 @@
return {
return { {
"mfussenegger/nvim-lint",
opts = {
events = { "BufWritePost", "BufReadPost", "InsertLeave" },
@ -23,4 +23,16 @@ return {
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",
"prettierd",
"stylua",
"vale",
},
automatic_installation = true,
}