C ++ VIM clang complete How to show functional parameters?

I looked and google'd everywhere, but I don’t know how I can use clang complete to show me the parameters of any function.

For example, the function is as follows:

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

And I want clang to fully show me the parameters of the add function. Therefore, it will display something like:

 int a, int b 

Obviously this will not look like that, but I want to see the parameters of the function, thanks.

+4
source share
1 answer

try it

 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='<cx><cu><cp>' 
+4
source

Source: https://habr.com/ru/post/1448125/


All Articles