MCPcopy
hub / github.com/micro-editor/micro / FindPlugin

Function FindPlugin

internal/config/plugin.go:133–145  ·  view source on GitHub ↗

FindPlugin returns the plugin with the given name

(name string)

Source from the content-addressed store, hash-verified

131
132// FindPlugin returns the plugin with the given name
133func FindPlugin(name string) *Plugin {
134 var pl *Plugin
135 for _, p := range Plugins {
136 if !p.IsLoaded() {
137 continue
138 }
139 if p.Name == name {
140 pl = p
141 break
142 }
143 }
144 return pl
145}

Callers 4

SetStatusInfoFnLuaFunction · 0.92
LuaActionFunction · 0.92
PluginAddRuntimeFileFunction · 0.85

Calls 1

IsLoadedMethod · 0.80

Tested by

no test coverage detected