Add scadformat fixer for OpenSCAD (#4808)

Add scadformat to ALE

---------

Co-authored-by: w0rp <w0rp@users.noreply.github.com>
This commit is contained in:
tony-oandw0rp authored and GitHub committed 2025-03-11 13:00:03 +00:00
1 parent b26608681d
commit 92753662a7
8 files changed
+63

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
" 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