Closed jberryman closed 11 years ago
lushtags isn't designed to be used this way. It creates no tag files and is designed to only show tags in Tagbar.
If you want to be able to jump to tags then you will need to use one of the other tag generation programs (or twist lushtags to generate tag files).
Even better, however, is to use another program of mine, vim-hdevtools, which has a feature that allows you to jump to identifiers. It is much smarter than tags: for example, if you have multiple functions in different modules with the same name, then vim-hdevtools knows to jump to the correct function. It will also give you the full signature of identifiers, plus lots of other great features.
Thanks for responding and I'll check out vim-hdevtools.
So lushtags only works per-file? As I said I haven't used vim with tags much, and just started trying out tagbar, so I might not know what I'm doing. But it seems like from the README that lushtags is purporting to be an easier replacement for the usual methods of "manually running commands" that "keep track of tag files", while actually providing little of the same functionality. Could the README be clarified.
Thanks for your work!
From the first line of the readme: "Create ctags compatible tags files for Haskell programs"
Maybe this is a little misleading?
Also how exactly do you jump to function definition with vim-hdevtools? That feature does not seem to be documented.
@atn34:
:HdevtoolsInfo
Enter
(or Control Enter
to navigate in a split)ctags --version
sudo apt update
sudo apt install exuberant-ctags # or sudo apt install universal-ctags
cd
to your folder, type the following commandctags -R .
vim
to your file or folder, type ctrl-]
to jump definition of function/data structure (backing by ctrl-t
)gd
in vim.
I'm new to using tags with Vim, so forgive me if this is obvious. I've installed lushtags according to the docs, and get a correct-looking sidebar when opening a file.
The documentation says:
I assumed that meant I could just open tagbar anywhere and then do the usual jumping between files, but when I put the cursor over a token in the current file and do a
ctrl-]
I'm receiving:Am I misunderstanding what should be happening?