diff --git a/.vim/plugin/cscope_plus.vim b/.vim/plugin/cscope_plus.vim index 4db6f97..d9d5a59 100644 --- a/.vim/plugin/cscope_plus.vim +++ b/.vim/plugin/cscope_plus.vim @@ -99,7 +99,7 @@ endif " --extra=+q : Adds context to the tag name. Note: Without this " option, the script cannot get class members. if !exists("g:build_cmd") - let g:build_cmd="make" + let g:build_cmd="make --dry-run --always-make" endif " More tools can be found here: https://github.com/Sarcasm/notes/blob/master/dev/compilation-database.rst @@ -122,7 +122,7 @@ func! MenuCB(id, result) elseif a:result == 4 call AutotagsAdd() elseif a:result == 5 - execute "!" . g:build_cmd . " --dry-run --always-make | grep -wE 'gcc|g++|cc|clang|clang++' | grep -w '\\-c' | jq -nR '[inputs|{directory:\".\", command:., file: match(\" [^ ]+$\").string[1:]}]' > compile_commands.json" + execute "!" . g:build_cmd . " | grep -wE 'gcc|g++|cc|clang|clang++' | grep -w '\\-c' | jq -nR '[inputs|{directory:\".\", command:., file: match(\" [^ ]+$\").string[1:]}]' > compile_commands.json" elseif a:result == 6 "https://github.com/rizsotto/Bear execute "!bear --" g:build_cmd "--always-make" elseif a:result == 7 "https://github.com/nickdiego/compiledb