autozimu / LanguageClient-neovim

Language Server Protocol (LSP) support for vim and neovim.
MIT License
3.55k stars 272 forks source link

update the tag stack using gettagstack and settagstack when jumping #1217

Closed iamcodemaker closed 3 years ago

iamcodemaker commented 3 years ago

Jumps should update vim's tag stack using gettagstack() and settagstack() to make going back easier (no idea if this is supported in neovim). You can currently go back using C-o but it follows all moves rather than only code navigation related moves. Supporting the tag stack would allow jumping back using C-t which works independently from regular moves. Vim's ctag support uses the tag stack.

Support for interacting with the tag stack appears to have been added here: https://github.com/neovim/neovim/pull/9951.

martskins commented 3 years ago

I think this would be nice to implement. I don't have any immediate plans to implement it though, so anyone who wants to give it a try go ahead, otherwise I'll see if I can find some time to add this eventually.

Having said that, I'm closing this as a duplicate of #517. Feel free to re-open if you don't agree it's a duplicate though.

iamcodemaker commented 3 years ago

It's totally a duplicate. I'll take a look and see if I can figure out how to make this work.