mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
Allow any plugin to be enabled or disabled via settings
This commit is contained in:
@@ -62,7 +62,7 @@ func SetStatusInfoFnLua(s string, fn string) {
|
||||
}
|
||||
}
|
||||
statusInfo[s] = func(b *buffer.Buffer) string {
|
||||
if pl == nil {
|
||||
if pl == nil || !pl.IsEnabled() {
|
||||
return ""
|
||||
}
|
||||
val, err := pl.Call(plFn, luar.New(ulua.L, b))
|
||||
|
||||
Reference in New Issue
Block a user