xolox / vim-lua-ftplugin

Lua file type plug-in for the Vim text editor
http://peterodding.com/code/vim/lua-ftplugin
187 stars 27 forks source link

Support for "goto declaration" and "goto definition" (via YCM?) #34

Open blueyed opened 9 years ago

blueyed commented 9 years ago

Exuberant Ctags support for lua does not handle modules properly. (see e.g. https://awesome.naquadah.org/bugs/index.php?do=details&task_id=1313).

I wonder it would be fairly easy to provide first class support for "goto declaration/definition", e.g. through YouCompleteMe, which has an API for this: https://github.com/Valloric/YouCompleteMe#ycmcompleter-subcommands

Here is the Python implementation, using Jedi: https://github.com/Valloric/ycmd/blob/master/ycmd/completers/python/jedi_completer.py

baiyanhuang commented 8 years ago

Is this somehow supported?

idbrii commented 7 years ago

stevedonovan/ltags produces a tags file that allows for jumping to declaration. I'm not sure how you'd differentiate declaration and definition in lua, so that might not be quite what you mean?