Ⅰ. 插件描述
An obsolete shim on the analysis server following the language server protocol - use the analysis server with `--lsp` insteadⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'natebosch/dart-language-server'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'natebosch/dart-language-server'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'natebosch/dart-language-server'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/natebosch/dart_language_server
Ⅳ. 文档说明
# Dart Language Server
Wraps the [dart analysis server] and adapts its [default protocol] to the
[language server protocol].
This project is obsolete. The Dart SDK ships with an analysis server which can
run in LSP mode with the --lsp flag.
To start up the server use the analysis server snapshot from the bin directory
of the SDK.
For example, if the Dart SDK is at $DART_SDK and $DART_SDK/bin/ is on your$PATH (which makes commands like dart and pub available) the analysis
server can be launched with:dart $DART_SDK/snapshots/analysis_server.dart.snapshot --lsp
You can see an example of configuring the vim-lsc client at https://github.com/natebosch/vim-lsc-dart