I use neovim and coc-clangd for C/C++ programming. Every thing is ok and i can jump through definitions and search references of a symbol in all of my project files by holding the cursor on the symbol and use the gr
keybinding for calling the jumpReferences
action.
i want to know that is there any option to search a symbol by simply typing it and not with gr
key binding in coc-clangd?
actually i can do this job using cscope by bellow command:
:cs find global <symbol-name>
but it would be much better using coc-clangd, because the indexing procedure is more simple. so i searched and found this link and in there i found jumpReferences
coc action. i played so much with this action. for example i have run bellow command:
:call CocAction('jumpReferences', <symbol-name>)
this does not cause any error but ignores <symbol-name>
and just gives the list of references to the symbol under the cursor.