4

当使用 Clang Complete 自动完成时,我想让它也显示函数签名。

例如,如果我声明以下函数:

int add(int a, int b) {
    int result = a + b;

    return result;
}

当我启动 Clang Complete 时,我不仅希望在自动完成结果中弹出函数名称,而且还希望它是参数:add(int a, int b).

4

1 回答 1

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>'
于 2012-11-25T06:21:54.233 回答