Browse Source
Now supports lua functions. The ideas come from @caligian and his repo, though modified to use a unique index instead of requiring a name.my-config
Luigi Sartor Piucco
3 years ago
9 changed files with 87 additions and 29 deletions
@ -1,5 +1,11 @@ |
|||
local autocmds = { |
|||
{ "BufWinEnter,BufWritePost", "<buffer>", [[lua require("lint").try_lint()]] }, |
|||
{ |
|||
"BufWinEnter,BufWritePost", |
|||
"<buffer>", |
|||
function() |
|||
require("lint").try_lint() |
|||
end, |
|||
}, |
|||
} |
|||
|
|||
return autocmds |
|||
|
Loading…
Reference in new issue