feat: add markdown linting/formatting
This commit is contained in:
parent
41367e3235
commit
4aed78a5b3
3 changed files with 16 additions and 2 deletions
|
@ -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" },
|
||||||
|
|
|
@ -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
|
||||||
|
} }
|
||||||
|
|
|
@ -22,6 +22,7 @@ return {
|
||||||
"eslint_d",
|
"eslint_d",
|
||||||
"prettierd",
|
"prettierd",
|
||||||
"stylua",
|
"stylua",
|
||||||
|
"vale",
|
||||||
},
|
},
|
||||||
automatic_installation = true,
|
automatic_installation = true,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue