deoplete-rtags


Ⅰ. 插件描述

Deoplete external source for c/c++/objc[++] using rtags.

Ⅱ. 基本信息

创建日期:  2016-02-28
使用用户:  1
Github星:  19
插件作者:  Radosław Załuska

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'rzaluska/deoplete-rtags'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'rzaluska/deoplete-rtags'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'rzaluska/deoplete-rtags'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/rzaluska/deoplete-rtags

Ⅳ. 文档说明

# deoplete-rtags
Deoplete external source for c/c++/objc[++] using rtags.

Use deoplete.nvim asynchronous
autocompletion together with rtags
symbols database.

Current project status:

Proof of concept :boom:

requrements

recomended setup

  • Make sure your project is CMake driven
  • Install deoplete.nvim
  • Install this plugin
  • Install rtags
  • Create CMake compilation database
mkdir your/build/directory
cd your/build/directory
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON your/project/root
  • Run rtags server in separate terminal
rdm
  • Run rtags client and ask server to use provided compilation database (this
  1. allow you to use completions based on files in your project and all

libraries mentioned in CMakeLists.txt)

-J flag will tell rtags server to load compile_commands.json from provided

directory

rc -J your/build/directory
  • You are ready to go just open file in your project and start typing.
    Sugesstions will pop up automatically thanks to

deoplete.nvim.

aim of project

  • create CMake compatibile autocompletion
  1. for neovim
  • use client-server architecture based on rtags
  • provide sugestions as you type with help of deoplete
  • create zero configuration plugin that will just work for any CMake project

related plugins

  1. your codebase using rtags
  1. and reference implementation

添加新评论