feat: Add ALE fixer for astyle

This commit is contained in:
jhlink 2020-07-10 17:46:01 -04:00
parent 106c27644b
commit 7f881f66a8

View File

@ -0,0 +1,14 @@
" Author: James Kim <jhlink@users.noreply.github.com>
" Description: Fix C/C++ files with astyle.
call ale#Set('c_astyle_executable', 'astyle')
function! ale#fixers#astyle#Fix(buffer) abort
let l:executable = ale#Var(a:buffer, 'c_astyle_executable')
return {
\ 'command': ale#Escape(l:executable)
\ . ' %t',
\ 'read_temporary_file': 1,
\}
endfunction