mirror of
https://github.com/dense-analysis/ale.git
synced 2026-04-29 02:24:36 +08:00
92753662a7
Add scadformat to ALE --------- Co-authored-by: w0rp <w0rp@users.noreply.github.com>
16 lines
529 B
VimL
16 lines
529 B
VimL
" Author: tony o'dell <tony.odell@live.com>
|
|
" Description: Fix scad files with scadformat
|
|
|
|
call ale#Set('openscad_scadformat_executable', 'scadformat')
|
|
call ale#Set('openscad_scadformat_options', '')
|
|
|
|
function! ale#fixers#scadformat#Fix(buffer) abort
|
|
let l:executable = ale#Var(a:buffer, 'openscad_scadformat_executable')
|
|
let l:options = ale#Var(a:buffer, 'openscad_scadformat_options')
|
|
|
|
return {
|
|
\ 'command': ale#Escape(l:executable)
|
|
\ . (empty(l:options) ? '' : ' ' . l:options),
|
|
\}
|
|
endfunction
|