I am using
coc.vim in neovim.
coc.vim suggests the following mapping for jumping to the definition of a class/method.
nmap <silent> gd <Plug>(coc-definition)
If there is only a single matching definition, pressing
gd will immediately open the definition in the current window.
If there are multiple matches, coc shows a preview window with the list of matching files. It is possible to scroll through the results with
k. Pressing tab displays the following prompt, for opening the current selection.
Choose action: [o]pen, (p)review, (q)uickfix, (t)abe, (d)rop, (v)split, (s)plit:
- Is the above prompt a standard part of
vimor is it part of
- Is it possible to force this prompt, even if there is only a single hit?
- If not, how can I force vim to open
coc-definitionin a new vertical split?