/vim-elm-analyse

Elm Analyse linting in VIM with ALE

Primary LanguageVim scriptApache License 2.0Apache-2.0

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
git clone https://github.com/antew/vim-elm-analyse.git

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.