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.
buckaroo install
buck build //:app#compilation-database --out compile_commands.json
vim ./src/main.cppTo generate the compile_commands.json file, use the compilation-database flavor:
buck build //:app#compilation-database --out compile_commands.jsonThe 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.