Open pyk opened 2 years ago
For anyone else arriving here before this is put into ale proper, you can get forge fmt
working with a custom fixer:
function! FormatSolidity(buffer) abort
return {
\ 'command': 'forge fmt --raw -'
\}
endfunction
execute ale#fix#registry#Add('forgefmt', 'FormatSolidity', ['solidity'], 'forge fmt for solidity')
let g:ale_fixers = {}
let g:ale_fixers.solidity = ['forgefmt']
Name: forgefmt URL: https://github.com/foundry-rs/foundry/tree/master/fmt
Solidity formatter that respects (some parts of) the Style Guide