Ⅰ. 插件描述
Swift completer for nvim-completion-manager: https://github.com/roxma/nvim-completion-managerⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'dafufer/nvim-cm-swift-completer'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'dafufer/nvim-cm-swift-completer'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'dafufer/nvim-cm-swift-completer'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/dafufer/nvim-cm-swift-completer
Ⅳ. 文档说明
## Introduction
Swift completion for NCM,
based on the SourceKitten framework.

Requirements
- Install and config SourceKitten
vimrc example
Plug 'roxma/nvim-completion-manager'
" swift
Plug 'dafufer/nvim-cm-swift-completer'
jump to placeholders
autocmd FileType swift nmap <buffer> <C-k> <Plug>(swift_completer_jump_to_placeholder)
autocmd FileType swift imap <buffer> <C-k> <Plug>(swift_completer_jump_to_placeholder)
setting custom target and SDK, and a SPM Module to read flags from it
" this variables can also be set specifically for a buffer by using b: instead of g:
let g:swift_completer_sdk = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk' "
let g:swift_completer_target = 'arm64-apple-ios9.0'
let g:swift_completer_spm_module = 'Test'