Skip to content
Adds ronfmt to ALE fixers.
Vim script
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
autoload/ale/fixers
plugin
LICENSE
README.md

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'], ... }
You can’t perform that action at this time.