first commit

This commit is contained in:
2026-02-13 04:20:30 +01:00
commit 2bd6b181f4
159 changed files with 194785 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
return {
'mfussenegger/nvim-lint',
config = function()
require('lint').linters_by_ft = {
['yaml.ansible'] = { 'ansible_lint' },
bash = { 'shellcheck' },
make = { 'checkmake' },
cmake = { 'cmakelint' },
cpp = { 'clangtidy' },
c = { 'clangtidy' },
editorconfig = { 'editorconfig-checker' },
html = { 'tidy' },
json = { 'jsonlint' },
sql = { 'sqlfluff' },
js = { 'standardjs' },
css = { 'stylelint' },
systemd = { 'systemdlint' },
yaml = { 'yamllint' },
zsh = { 'zsh' },
python = { 'pylint', 'mypy' },
}
vim.api.nvim_create_autocmd({ 'BufWritePost' }, {
callback = function()
-- try_lint without arguments runs the linters defined in `linters_by_ft`
-- for the current filetype
require('lint').try_lint()
end,
})
end,
}