Ⅰ. 插件描述
Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'hyhugh/coc-erlang-ls'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'hyhugh/coc-erlang-ls'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'hyhugh/coc-erlang-ls'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/hyhugh/coc-erlang_ls
Ⅳ. 文档说明
# erlang_ls language server extension
erlang_ls extension for coc.nvim
Features
- everything which erlang_ls can provide
Install
you need to install erlang_ls first before using this plugin
Plug 'hyhugh/coc-erlang_ls', {'do': 'yarn install --frozen-lockfile'}Config
There are three configuration variables available
erlang_ls.erlang_ls_path: should be a string, which is the full path to the erlang_ls binary, or just erlang_ls if it is already in your $PATH.erlang_ls.port: should be a number, which is the port to communicate with the language server.erlang_ls.trace.server: three options available off, messages and verbose.
Sample config to put in your coc-settings.json
{
"erlang_ls.port": 12345,
"erlang_ls.erlang_ls_path": "/Users/hyhugh/apps/erlang_ls/_build/default/bin/erlang_ls",
"erlang_ls.trace.server": "off"
}