vim-elm-language-server


Ⅰ. 插件描述

Deprecated, now built into ALE!

Ⅱ. 基本信息

创建日期:  2019-04-29
使用用户:  1
Github星:  11
插件作者:  antew

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'antew/vim-elm-language-server'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'antew/vim-elm-language-server'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'antew/vim-elm-language-server'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/antew/vim-elm-language-server

Ⅳ. 文档说明

# 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 ManagerCommand
Vim-PlugPlug 'antew/vim-elm-language-server'
VundlePlugin 'antew/vim-elm-language-server'
Pathogen<pre>cd ~/.vim/bundle
git clone https://github.com/antew/vim-elm-language-server.git<;/pre>

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

添加新评论