dotfiles/.config/nvim/lua/plugins/linting.lua
2024-02-22 20:34:18 -08:00

19 lines
375 B
Lua

return {
"mfussenegger/nvim-lint",
opts = {
linters_by_ft = {
gitcommit = { "commitlint" },
sql = { "sqlfluff" },
yaml = { "yamllint" },
bash = { "shellcheck" },
sh = { "shellcheck" },
},
linters = {
commitlint = {
args = {
"--config ~/.config/git/commitlint.config.js",
},
},
},
},
}