Add a lock for plugins to use if using async code

Ref #1539
This commit is contained in:
Zachary Yedidia
2020-06-28 16:29:32 -04:00
parent f5c6f66c8f
commit 253281ae5e
3 changed files with 6 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ func luaImportMicro() *lua.LTable {
ulua.L.SetField(pkg, "Tabs", luar.New(ulua.L, func() *action.TabList {
return action.Tabs
}))
ulua.L.SetField(pkg, "Lock", luar.New(ulua.L, ulua.Lock))
return pkg
}