Add plugin info.json support

This commit is contained in:
Zachary Yedidia
2019-08-06 22:24:03 -07:00
parent 26c545267d
commit adaddba696
11 changed files with 381 additions and 9 deletions

View File

@@ -65,10 +65,11 @@ func RunPluginFnBool(fn string, args ...lua.LValue) (bool, error) {
}
type Plugin struct {
Name string // name of plugin
Info RuntimeFile // json file containing info
Srcs []RuntimeFile // lua files
Loaded bool
Name string // name of plugin
Info *PluginInfo // json file containing info
Srcs []RuntimeFile // lua files
Loaded bool
Default bool // pre-installed plugin
}
func (p *Plugin) IsEnabled() bool {