mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-01 00:53:29 +08:00
15 lines
388 B
VimL
15 lines
388 B
VimL
" 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
|