Ⅰ. 插件描述
vim-lsp support for SwiftⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'ryanolsonx/vim-lsp-swift'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'ryanolsonx/vim-lsp-swift'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'ryanolsonx/vim-lsp-swift'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/ryanolsonx/vim-lsp-swift
Ⅳ. 文档说明
# vim-lsp-swift
Sets up vim-lsp for Swift.
Installing
Please follow the instructions at sourcekit-lsp to setup the language server that gives features for Swift.
Install the vim plugins:
" Dependencies
Plug 'prabirshrestha/async.vim'
Plug 'prabirshrestha/vim-lsp'
Plug 'ryanolsonx/vim-lsp-swift'Have an Issue?
Try to reproduce with a minimal vimrc configuration. You can use the one included in this project to create a temp vim setup.
curl https://raw.githubusercontent.com/ryanolsonx/vim-lsp-swift/master/minimal.vimrc -o /tmp/minimal.vimrc
vim -u /tmp/minimal.vimrc +PlugInstall +qall
vim -u /tmp/minimal.vimrc ./your_test_file.swiftLicense
MIT