Jobs and gutter messages for plugins

This commit is contained in:
Zachary Yedidia
2019-08-02 18:29:47 -07:00
parent e3ae38e54a
commit e7e0272968
5 changed files with 165 additions and 8 deletions

View File

@@ -114,3 +114,14 @@ func (p *Plugin) Call(fn string, args ...lua.LValue) (lua.LValue, error) {
ulua.L.Pop(1)
return ret, nil
}
func FindPlugin(name string) *Plugin {
var pl *Plugin
for _, p := range Plugins {
if p.Name == name {
pl = p
break
}
}
return pl
}