mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-28 05:42:16 +08:00
13 lines
473 B
VimL
13 lines
473 B
VimL
function! ale#fixers#biome#Fix(buffer) abort
|
|
let l:executable = ale#handlers#biome#GetExecutable(a:buffer)
|
|
let l:options = ale#Var(a:buffer, 'biome_options')
|
|
let l:apply = ale#Var(a:buffer, 'biome_fixer_apply_unsafe') ? '--write --unsafe' : '--write'
|
|
|
|
return {
|
|
\ 'read_temporary_file': 1,
|
|
\ 'command': ale#Escape(l:executable) . ' check ' . l:apply
|
|
\ . (!empty(l:options) ? ' ' . l:options : '')
|
|
\ . ' %t'
|
|
\}
|
|
endfunction
|