Vim compiler plugin for luacheck.
:compiler luacheck
Optionally, you can set g:luacheck_makeprg_type
before invoking the above to
change the initial value of makeprg
:
let g:luacheck_makeprg_type = 'cd'
setsmakeprg
toluacheck .
to check files in the current directory.let g:luacheck_makeprg_type = 'cfile'
setsmakeprg
toluacheck %:S
to check the current file.