nvim-langserver-shim


Ⅰ. 插件描述

Shim for the language server protocol developed by Microsoft

Ⅱ. 基本信息

创建日期:  2016-10-22
使用用户:  1
Github星:  150
插件作者:  TJ DeVries

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'tjdevries/nvim-langserver-shim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'tjdevries/nvim-langserver-shim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'tjdevries/nvim-langserver-shim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/tjdevries/nvim-langserver-shim

Ⅳ. 文档说明

# nvim-langserver-shim

NOTICE

Hi everyone, Thanks for all the support this plugin has received. If you like it, consider giving feedback and/or help, patches and review to https://github.com/neovim/neovim/pull/6856 , where I'll be working on incorporating this into Neovim.

Once that is merged, I'll probably just delete everything inside the repository (you can go back in history if you'd like it :) ) and point to Neovim's documentation.

Thanks

Old info

Shim for the language server protocol developed by Microsoft. The protocol can be found here: https://github.com/Microsoft/language-server-protocol

Configuration

First you need to install a language server. An example of installing one might be:

$ go get github.com/sourcegraph/go-langserver/langserver/cmd/langserver-go

A more complete set of language servers can be found here: https://github.com/Microsoft/language-server-protocol/wiki/Protocol-Implementations

You will need to put this somewhere that is sourced on startup.

let g:langserver_executables = {
      \ 'go': {
        \ 'name': 'sourcegraph/langserver-go',
        \ 'cmd': ['langserver-go', '-trace', '-logfile', expand('~/Desktop/langserver-go.log')],
        \ },
      \ }

To start the language server, run the command:

:LSPStart

After starting the language server, you should be able to run commands like:

:LSPGoto
:LSPHover

and some more to come.

More configuration to come...

Plans

添加新评论