neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.15k stars 953 forks source link

something about jumpback after gD coc-definition #4996

Closed madongyu closed 2 months ago

madongyu commented 2 months ago

Result from CocInfo

image

Describe the bug

After type gd, it can goto the right definition in other file A, but I type ctrl-o aim at back to the origin position, it goto the first line of file A , and then I type ctrl-o again it can be back to the right origin postion

Is the way I can jumpback by type once ctrl-o?

Reproduce the bug

We will close your issue when you don't provide minimal vimrc and we can't reproduce it

Screenshots (optional)

If applicable, add screenshots to help explain your problem.

towry commented 2 months ago

:h keepjumps

fannheyward commented 2 months ago

Check :h CocTagFunc, you can use C-t to jump back.