1
0
Fork 0
mirror of synced 2024-05-28 13:01:12 -04:00
ultimate-vim/sources_non_forked/ale/autoload/ale/fixers/stylua.vim
2021-07-04 22:47:44 +02:00

15 lines
468 B
VimL

" Author: Robert Liebowitz <rliebz@gmail.com>
" Description: https://github.com/johnnymorganz/stylua
call ale#Set('lua_stylua_executable', 'stylua')
call ale#Set('lua_stylua_options', '')
function! ale#fixers#stylua#Fix(buffer) abort
let l:executable = ale#Var(a:buffer, 'lua_stylua_executable')
let l:options = ale#Var(a:buffer, 'lua_stylua_options')
return {
\ 'command': ale#Escape(l:executable) . ale#Pad(l:options) . ' -',
\}
endfunction