The Wayback Machine - https://web.archive.org/web/20201128212449/https://github.com/njlr/buck-ycm-example
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

README.md

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

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

How it Works

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

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.

About

Example showing how to connect Buck with YouCompleteMe for Vim

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.