Skip to content

theosirian/ale-ronfmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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'], ... }

About

Adds ronfmt to ALE fixers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published