Skip to content

behaving even more like vanilla tagfunc? #2

@andymass

Description

@andymass

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions