Sublime Forum

Sublime Text 3: How to jump to the parent/enclosing function / if / loops in Lua?

#1

Using Lua, something I’m missing is the option to jump between parent and enclosing functions / ifs / loops, as I currently can with brackets/parenthesis (Ctrl+M):

How can I do that?

0 Likes

#2

https://packagecontrol.io/packages/BracketHighlighter will allow you to define arbitrary brackets.

There is some support for Lua already in it. Granted, for the for case it jumps between do and end, not for and end. Keep in mind I don’t use Lua, so I don’t recall why we are doing this from do, but :man_shrugging:. You can always modify the Lua extension for BH to do things differently:

jump

2 Likes