sbdchd / neoformat

:sparkles: A (Neo)vim plugin for formatting code.
BSD 2-Clause "Simplified" License
1.99k stars 189 forks source link

ReasonML bsrefmt should have try_node_exe set to 1. #393

Open chrischen opened 2 years ago

chrischen commented 2 years ago

It should be set to 1 just like for refmt, otherwise have to copy bsrefmt binary into path.

function! neoformat#formatters#reason#bsrefmt() abort
    return {
        \ 'exe': 'bsrefmt',
        \ 'stdin': 1,
        \ 'args': ["--interface=" . (expand('%:e') == "rei" ? "true" : "false")],
        \ 'try_node_exe': 1,
        \ }
endfunction