Skip to content

njlr/buck-ycm-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published