I work a bit on a lua project (not small, but most of the code is not my own), and I'd like to get tags working. Current ctags contains bug, which can be fixed by getting the latest code from svn apparently, but even without that bug, it's not very usefull to me, since it does not know about the structure of tables. To give an example, a file might contain
function table1:func1(arg1,arg2)
and then I have a call
table1:func1(a1,a2)
somewhere in my code. When the cursor is on table1:func1
, Ctrl-] should take me to the first mentioned file (assuming it's uniqe or the first in the list), but actually it can't find the tag. Using :ts /table1:func1
kinda does the job, but isn't nice to use.
So, long story short, does someone have a nice working setup for working with lua? How did you deal with the tag thing? I found some plugins that look kinda nice, but nothing seems to include a remedy to the tag problem.
set iskeyword+=:
so that vim will make:
a keyword character. Vim only searches for the keyword under the cursor when<c-]>
is hit.