Skip to content
This repository has been archived by the owner on Aug 1, 2019. It is now read-only.

antew/vim-elm-language-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

DEPRECATED - Now Built into ALE

Install ale and use elm_ls linter. See elm-language-server README and ale README for usage instructions.

Vim support for Elm Language Server

  • Note: This will likely be merged into ALE itself at some point, this repo is mainly for testing before that happens.

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

Installation

Package Manager Command
Vim-Plug Plug 'antew/vim-elm-language-server'
Vundle Plugin 'antew/vim-elm-language-server'
Pathogen
cd ~/.vim/bundle
git clone https://github.com/antew/vim-elm-language-server.git

elm-language-server

elm-language-server is not currently published as an npm package, to install it you can run:

$ git clone https://github.com/elm-tooling/elm-language-server.git
$ cd elm-language-server
$ npm install
$ npm run compile
$ npm link

Configuration

Finding Executables

You can allow ALE to use a globally installed versions of elm-language-server with

let g:ale_elm_ls_use_global = 1

Or, you can configure ALE to use a globally installed version for all executables.

let g:ale_use_global_executables = 1

You can set the path to elm, elm-format, elm-test and elm-language-server if desired, it defaults to assuming executables are avilable on the $PATH.

let g:ale_elm_ls_elm_path = "/path/to/elm"
let g:ale_elm_ls_elm_format_path = "/path/to/elm-format"
let g:ale_elm_ls_elm_test_path = "/path/to/elm-test"
let g:ale_elm_ls_executable = "/path/to/elm-language-server"

Disable ale's elm linter to avoid duplicate compile error messages:

let g:ale_linters_ignore = { 'elm': ['make'] }

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •