e149692cc9
subrepo: subdir: "dotfiles/.vim/plugged/ale" merged: "e4b205440" upstream: origin: "https://github.com/dense-analysis/ale.git" branch: "master" commit: "e4b205440" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
13 lines
419 B
VimL
13 lines
419 B
VimL
call ale#Set('lua_luafmt_executable', 'luafmt')
|
|
call ale#Set('lua_luafmt_options', '')
|
|
|
|
function! ale#fixers#luafmt#Fix(buffer) abort
|
|
let l:executable = ale#Var(a:buffer, 'lua_luafmt_executable')
|
|
let l:options = ale#Var(a:buffer, 'lua_luafmt_options')
|
|
|
|
return {
|
|
\ 'command': ale#Escape(l:executable)
|
|
\ . (empty(l:options) ? '' : ' ' . l:options)
|
|
\ . ' --stdin',
|
|
\}
|
|
endfunction
|