项目作者: njlr

项目描述 :
Example showing how to connect Buck with YouCompleteMe for Vim ✨
高级语言: Python
项目地址: git://github.com/njlr/buck-ycm-example.git
创建时间: 2019-02-22T18:43:15Z
项目社区:https://github.com/njlr/buck-ycm-example

开源协议:

下载


buck-ycm-example

Example showing how to connect Buck with the YouCompleteMe plugin for Vim.

This project depends on the Eigen Buckaroo package to demonstrate code-completion for packages.

Usage

  1. buckaroo install
  2. buck build //:app#compilation-database --out compile_commands.json
  3. vim ./src/main.cpp

How it Works

To generate the compile_commands.json file, use the compilation-database flavor:

  1. buck build //:app#compilation-database --out compile_commands.json

The extra flag --out compile_commands.json will tell Buck to copy the database to compile_commands.json.

YouCompleteMe will discover this file automatically.

You should add it your .gitignore since it is a build artefact.