lua

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadLuaPlugins

func LoadLuaPlugins(pm *plugin.Manager, dir string) error

LoadLuaPlugins loads all .lua files from the specified directory and registers them.

Types

type LuaPlugin

type LuaPlugin struct {
	L *lua.LState
	// contains filtered or unexported fields
}

LuaPlugin wraps a Lua script to implement the plugin.Plugin interface.

func NewLuaPlugin

func NewLuaPlugin(path string) (*LuaPlugin, error)

NewLuaPlugin creates a new Lua plugin from a script path.

func (*LuaPlugin) Initialize

func (p *LuaPlugin) Initialize(api plugin.EditorAPI) error

func (*LuaPlugin) Name

func (p *LuaPlugin) Name() string

func (*LuaPlugin) Shutdown

func (p *LuaPlugin) Shutdown() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL