How to create go objects from lua? #3286
Replies: 1 comment 1 reply
-
local buffer = import("micro/buffer")
buffer.Loc(6, 9) -- line 9, character 6 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dustdfg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I concretely need to create Loc object for passing it into
buf:Insert()
function just passing there{x, y}
doesn't work and insertion happens to the start of the buffer. If I try to pass therebuf:End()
, it returnsLoc
object from go which points to the end of the buffer and everything works as expectedBeta Was this translation helpful? Give feedback.
All reactions