使用Clang Complete自动完成时,我还想让它显示功能签名。
例如,如果我声明以下函数:
int add(int a, int b) {
int result = a + b;
return result;
}
当我启动Clang Complete时,我不仅要在自动完成结果中弹出函数名称,还要在它的参数中弹出:add(int a, int b)
。
答案 0 :(得分:4)
试试这个
set conceallevel=2
set concealcursor=vin
let g:clang_snippets=1
let g:clang_conceal_snippets=1
" The single one that works with clang_complete
let g:clang_snippets_engine='clang_complete'
" Complete options (disable preview scratch window, longest removed to aways
" show menu)
set completeopt=menu,menuone
" Limit popup menu height
set pumheight=20
" SuperTab completion fall-back
let g:SuperTabDefaultCompletionType='<c-x><c-u><c-p>'