Ⅰ. 插件描述
X version of clang source for deopleteⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'shougo/deoplete-clangx'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'shougo/deoplete-clangx'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'shougo/deoplete-clangx'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/shougo/deoplete-clangx
Ⅳ. 文档说明
# C/C++ Completion for deoplete using clang
Install
- Install the latest deoplete.nvim
- Make sure you already have clang(
clang
command)
Customization
" Change clang binary path
call deoplete#custom#var('clangx', 'clang_binary', '/usr/local/bin/clang')
" Change clang options
call deoplete#custom#var('clangx', 'default_c_options', '')
call deoplete#custom#var('clangx', 'default_cpp_options', '')
neoinclude
deoplete-clangx supports neoinclude plugin
https://github.com/Shougo/neoinclude.vim/
neoinclude adds include directory options(-I) automatically for clang.
".clang" or ".clang_complete" file
You can configure compiler options using the file.
https://github.com/Rip-Rip/clang_complete#minimum-configuration
Todo
- compile_commands.json file support