Add markdownlint as linter and formatter

resolves #8
This commit is contained in:
Alexander Navarro 2023-12-25 13:58:45 -03:00
parent 696961d514
commit f4073c837f
3 changed files with 3 additions and 0 deletions

View file

@ -19,6 +19,7 @@ return {
scss = { { "prettierd", "prettier" } }, scss = { { "prettierd", "prettier" } },
html = { "prettierd" }, html = { "prettierd" },
sh = { "shfmt" }, sh = { "shfmt" },
markdown = { "markdownlint" },
-- Use the "_" filetype to run formatters on filetypes that don't -- Use the "_" filetype to run formatters on filetypes that don't
-- have other formatters configured. -- have other formatters configured.
["_"] = { "trim_whitespace" }, ["_"] = { "trim_whitespace" },

View file

@ -17,6 +17,7 @@ return {
sh = { "shellcheck" }, sh = { "shellcheck" },
NeogitCommitMessage = { "gitlint" }, NeogitCommitMessage = { "gitlint" },
gitcommit = { "gitlint" }, gitcommit = { "gitlint" },
markdown = { "markdownlint" },
} }
vim.api.nvim_create_autocmd({ "BufWritePost" }, { vim.api.nvim_create_autocmd({ "BufWritePost" }, {

View file

@ -7,6 +7,7 @@ return {
"stylua", "stylua",
"blue", "blue",
"prettierd", "prettierd",
"markdownlint",
}, },
}, },
} }