21 lines
485 B
Lua
21 lines
485 B
Lua
return {
|
|
"mfussenegger/nvim-lint",
|
|
config = function()
|
|
require("lint").linters_by_ft = {
|
|
-- lua = { "selene" }, -- Disabled: lua_ls provides diagnostics
|
|
sh = { "shellcheck" },
|
|
bash = { "shellcheck" },
|
|
json = { "jsonlint" },
|
|
yaml = { "yamllint" },
|
|
markdown = { "markdownlint" },
|
|
rust = { "clippy" },
|
|
}
|
|
|
|
vim.api.nvim_create_autocmd({ "BufWritePost", "BufEnter", "InsertLeave" }, {
|
|
callback = function()
|
|
require("lint").try_lint()
|
|
end,
|
|
})
|
|
end,
|
|
}
|