blob: 4cdd7f7ab3be676582491b5e66633ffe837e077d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
vim.pack.add {
{
name = 'nvim-lint',
src = 'https://github.com/mfussenegger/nvim-lint',
},
}
local lint = require 'lint'
lint.linters_by_ft = {}
lint.linters_by_ft['c'] = { 'clangtidy' }
lint.linters_by_ft['ksh'] = { 'ksh' }
lint.linters_by_ft['ansible.yaml'] = { 'ansible_lint' }
lint.linters_by_ft['terraform'] = { 'tofu', 'tflint', 'terraform_validate' }
lint.linters_by_ft['python'] = { 'ruff' }
lint.linters_by_ft['sh'] = { 'shellcheck' }
table.insert(lint.linters.shellcheck.args, '-x')
|