summaryrefslogtreecommitdiff
path: root/ale_linters/lua
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/lua')
-rw-r--r--ale_linters/lua/luacheck.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/ale_linters/lua/luacheck.vim b/ale_linters/lua/luacheck.vim
index d4c1b242..0098e66e 100644
--- a/ale_linters/lua/luacheck.vim
+++ b/ale_linters/lua/luacheck.vim
@@ -4,12 +4,16 @@
let g:ale_lua_luacheck_executable =
\ get(g:, 'ale_lua_luacheck_executable', 'luacheck')
+let g:ale_lua_luacheck_options =
+\ get(g:, 'ale_lua_luacheck_options', '')
+
function! ale_linters#lua#luacheck#GetExecutable(buffer) abort
return ale#Var(a:buffer, 'lua_luacheck_executable')
endfunction
function! ale_linters#lua#luacheck#GetCommand(buffer) abort
return ale_linters#lua#luacheck#GetExecutable(a:buffer)
+ \ . ' ' . ale#Var(a:buffer, 'lua_luacheck_options')
\ . ' --formatter plain --codes --filename %s -'
endfunction