diff options
author | Alex Masterov <alex.masterow@gmail.com> | 2017-04-29 08:57:08 +0300 |
---|---|---|
committer | Alex Masterov <alex.masterow@gmail.com> | 2017-04-29 08:58:35 +0300 |
commit | 9cea7801210cf79bbd08f9a2e99c4e0cbfe9ae1f (patch) | |
tree | 4ed7a11717133ff897573af740cc5248f6a0a854 /ale_linters/lua | |
parent | e417dafa780aa62b5b5aed53956bd73a524f9758 (diff) | |
download | ale-9cea7801210cf79bbd08f9a2e99c4e0cbfe9ae1f.zip |
Add luacheck option to pass in more options
Diffstat (limited to 'ale_linters/lua')
-rw-r--r-- | ale_linters/lua/luacheck.vim | 4 |
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 |