diff --git a/api.go b/api.go index b4c4496..500cbcc 100644 --- a/api.go +++ b/api.go @@ -140,7 +140,9 @@ func hilbishLoad(rtm *rt.Runtime) (rt.Value, func()) { // hilbish.completion table hshcomp := completionLoader(rtm) + // TODO: REMOVE "completion" AND ONLY USE "completions" WITH AN S mod.Set(rt.StringValue("completion"), rt.TableValue(hshcomp)) + mod.Set(rt.StringValue("completions"), rt.TableValue(hshcomp)) // hilbish.runner table runnerModule := runnerModeLoader(rtm) diff --git a/complete.go b/complete.go index e3aad91..71d92fb 100644 --- a/complete.go +++ b/complete.go @@ -247,7 +247,6 @@ func hcmpBins(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) { return c.PushingNext(t.Runtime, rt.TableValue(luaComps), rt.StringValue(pfx)), nil } - // #interface completion // call(name, query, ctx, fields) -> completionGroups (table), prefix (string) // Calls a completer function. This is mainly used to call a command completer, which will have a `name`