Replies: 1 comment
-
As the plugin page says:
(As an example, This implies that you need to know a bit of Go, at least to understand the signatures of those methods. Furthermore, you'd better also know a bit about the rules of how those Go interfaces are automatically converted to Lua interfaces (so that you know how to use them from Lua code). Those rules are described in https://pkg.go.dev/layeh.com/gopher-luar#New. Also, what this doesn't mention is that many of those interfaces in https://pkg.go.dev/github.com/zyedidia/micro/v2/internal are poorly documented, or not documented at all. So realistically, you often need to read and understand micro's source code in order to write plugins efficiently. Another thing it doesn't mention is that those interfaces documented in https://pkg.go.dev/github.com/zyedidia/micro/v2/internal are not guaranteed to remain stable, they may suddenly change in the next release of micro. All the above is to make your life exciting. |
Beta Was this translation helpful? Give feedback.
-
I've been experimenting with creating a plugin, and I think I've found a bug. Upon execution, the editor strangely shifts each line as you move through it with the arrow keys. It I remove the "-v" (verbose) option from the copy command the problem goes away. But I do want the results of the execute.
N.B. I'm using version 2.0.14.
Also, is there a thorough reference for all of the commands. I've read the plugin page and there are things I had to figure out from other people's plugin code.
Beta Was this translation helpful? Give feedback.
All reactions