-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hey!
First of all, this is a great plugin. I love the concept of a small plugin which integrates neovim's lsp with tagfunc and just gets it right. I wonder though, can we go even further? In particular;
Using this plugin will remove the ability to search for arbitrary tags with any of the tag related ex-commands. As long as a language client is available, the current cursor location is used by the server to determine the results.
How about if the user types :tag foo, using workspace/symbol to search along the word foo? This seems roughly similar, but smarter than using a tagfile.
The other use-case I have in mind is when the user types just :tag. In vanilla vim, this is supposed to jump to a newer entry in the tagstack. I tried this out a bit with the plugin and I'm not sure what is happening right now. It's a bit tricky because we need to store enough information to actually recall the tag. This is one reason I added "user_data," for bookkeeping.
I am almost certain it's possible to get LSP sourced tags near vanilla-like. I tried hard to take care of this when I modernized and got the tagfunc patch merged into vim.