blob: 4aa79b1db6f4c521e7592a2614263d75da3a4bd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave", "TextChanged" }, {
callback = function()
-- try_lint without arguments runs the linters defined in `linters_by_ft`
-- for the current filetype
require("lint").try_lint()
-- You can call `try_lint` with a linter name or a list of names to always
-- run specific linters, independent of the `linters_by_ft` configuration
-- require("lint").try_lint("cspell")
end,
})
|