Ⅰ. 插件描述
Elm Analyse linting in VIM with ALEⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'antew/vim-elm-analyse'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'antew/vim-elm-analyse'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'antew/vim-elm-analyse'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/antew/vim-elm-analyse
Ⅳ. 文档说明
# 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 | <pre>cd ~/.vim/bundle git clone https://github.com/antew/vim-elm-analyse.git</pre> |
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 = 1Or, you can configure ALE to use a globally installed version for all executables.
let g:ale_use_global_executables = 1Configuring 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.