33
GitHub - theosirian/ale-ronfmt: Adds ronfmt to ALE fixers.
source link: https://github.com/theosirian/ale-ronfmt
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
ale-ronfmt
Adds ronfmt to ALE fixers.
Dependencies
Installation
Make sure you have ALE and ronfmt
installed, otherwise it won't work.
Vim package management
Vim 8 on Unix
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
NeoVim on Unix
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
Vim 8 on Windows
# 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
Pathogen
git clone --depth 1 https://github.com/theosirian/ale-ronfmt.git ~/.vim/bundle/ale-ronfmt
Vundle
Plugin 'theosirian/ale-ronfmt'
Vim-Plug
Plug 'theosirian/ale-ronfmt'
Configuration
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'], ... }
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK