Adds ronfmt to ALE fixers.
Make sure you have ALE and ronfmt
installed, otherwise it won't work.
mkdir -p ~/.vim/pack/git-plugins/start
git clone --depth 1 https://github.com/theosirian/ale-ronfmt.git ~/.vim/pack/git-plugins/start/ale-ronfmt
mkdir -p ~/.local/share/nvim/site/pack/git-plugins/start
git clone --depth 1 https://github.com/theosirian/ale-ronfmt.git ~/.local/share/nvim/site/pack/git-plugins/start/ale-ronfmt
# Run these commands in the "Git for Windows" Bash terminal
mkdir -p ~/vimfiles/pack/git-plugins/start
git clone --depth 1 https://github.com/theosirian/ale-ronfmt.git ~/vimfiles/pack/git-plugins/start/ale-ronfmt
git clone --depth 1 https://github.com/theosirian/ale-ronfmt.git ~/.vim/bundle/ale-ronfmt
Plugin 'theosirian/ale-ronfmt'
Plug 'theosirian/ale-ronfmt'
The plugin offers two configuration variables that you can set on your .vimrc
:
" Set a different path for `ronfmt` executable
let g:ale_ron_ronfmt_executable='ronfmt'
" Modify the flags passed to `ronfmt`
let g:ale_ron_ronfmt_options='-t 2 -w 120'
Refer to ronfmt
documentation to see the available options.
If you prefer to whitelist your linters and fixers for ALE don't forget to add it to the list:
let g:ale_fixers = { ..., 'ron': ['ronfmt'], ... }