22 lines
473 B
Lua
22 lines
473 B
Lua
|
return {
|
||
|
'nvim-lint',
|
||
|
event = { 'BufReadPost', 'BufWritePost', 'BufNewFile' },
|
||
|
after = function()
|
||
|
local lint = require('lint')
|
||
|
|
||
|
lint.linters_by_ft = {
|
||
|
fish = { 'fish' },
|
||
|
}
|
||
|
|
||
|
vim.api.nvim_create_autocmd(
|
||
|
{ 'BufWritePost', 'BufReadPost', 'InsertLeave' },
|
||
|
{
|
||
|
group = vim.api.nvim_create_augroup('nvim-lint', { clear = true }),
|
||
|
callback = function()
|
||
|
require('lint').try_lint()
|
||
|
end,
|
||
|
}
|
||
|
)
|
||
|
end,
|
||
|
}
|