Elm Analyse for Vim
This plugin adds support for linting through ALE with elm-analyse.
Installation
vim-elm-analyse
Package Manager | Command |
---|---|
Vim-Plug | Plug 'antew/vim-elm-analyse' |
Vundle | Plugin 'antew/vim-elm-analyse' |
Pathogen | cd ~/.vim/bundle |
elm-analyse
I recommend installing it globally, npm i -g elm-analyse
For more info see here
Configuration
Finding Executables
You can allow ALE to use a globally installed versions of elm-analyse
with
let g:ale_elm_analyse_use_global = 1
Or, you can configure ALE to use a globally installed version for all executables.
let g:ale_use_global_executables = 1
Configuring Elm Analyse
Create an elm-analyse.json
file in the root of your project and add your customizations.
{
"checks" : {
"UnusedTypeAlias": false
}
}
See the Elm Analyse documentation for additional configuration options.