plugin

package
v0.0.0-...-85622c8 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(vim *nvim.Nvim) *Logger

func (*Logger) Close

func (l *Logger) Close()

func (*Logger) Errorf

func (l *Logger) Errorf(format string, args ...any)

func (*Logger) Infof

func (l *Logger) Infof(format string, args ...any)

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

Plugin represents a remote plugin.

func New

func New(v *nvim.Nvim, l *Logger) *Plugin

New returns an intialized plugin.

func (*Plugin) Manifest

func (p *Plugin) Manifest(host, executable, writeTo string) error

func (*Plugin) RegisterEndpoint

func (p *Plugin) RegisterEndpoint(name string, fn any)

RegisterEndpoint registers fn as a handler for a vim function. The function signature for fn is one of

func([v *nvim.Nvim,] args {arrayType}) ({resultType}, error)
func([v *nvim.Nvim,] args {arrayType}) error

where {arrayType} is a type that can be unmarshaled from a MessagePack array and {resultType} is the type of function result.

Jump to

Keyboard shortcuts

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