func Register(p *plugin.Plugin) { e := &explorer{docm: doc.NewManager(p), nvim: p.Nvim} p.HandleCommand(&plugin.CommandOptions{Name: "Godoc", NArgs: "*", Complete: "customlist,QQQDocComplete", Eval: "*"}, e.onDoc) p.HandleCommand(&plugin.CommandOptions{Name: "Godef", NArgs: "*", Complete: "customlist,QQQDocComplete", Eval: "*"}, e.onDef) p.HandleFunction(&plugin.FunctionOptions{Name: "QQQDocComplete", Eval: "*"}, e.onComplete) p.HandleAutocmd(&plugin.AutocmdOptions{Event: "BufReadCmd", Pattern: bufNamePrefix + "**", Eval: "*"}, e.onBufReadCmd) }
func Register(p *plugin.Plugin) { p.HandleCommand(&plugin.CommandOptions{Name: "Fmt", Range: "%", Eval: "*"}, format) }