Open roxma opened 5 years ago
put compile_commands.json
into .git
dir, and let it support environment variables?
@fcying
put compile_commands.json into .git dir,
let g:ncm2_pyclang#database_path = [
\ 'compile_commands.json',
\ 'build/compile_commands.json',
\ '.git/compile_commands.json'
\ ]
@fcying you could also use global gitignore instead of throwing things into .git
directory.
$ cat ~/.gitconfig
[core]
excludesfile = ~/.gitignore_global
$ cat ~/.gitignore_global
/.envrc
.clang_complete
tags
compile_commands.json
I'm working on a very sophisticated C project.
Modifying the build script to generate
compile_commands.json
is not a good idea and I don't want to update a team repo for my custom dev env.Using
.clang_complete
is not enough.