Skip to content

antew/vim-elm-analyse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Elm Analyse for Vim

This plugin adds support for linting through ALE with elm-analyse.

** Only Elm 0.19 is supported by this plugin **

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

NOTE: This project currently requires a fork of elm-analyse.

I recommend installing it globally, npm i -g antew/elm-analyse#lsp

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.