nimvle

package
v0.0.0-...-677e9c4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nimvle

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

Nimvle provides nvim methods around the nvim.Nvim interface.

func New

func New(v *nvim.Nvim, name string) *Nimvle

New makes a new Nvimutils object for the specified nvim.Nvim.

func (*Nimvle) CurrentBufferFilenameExtension

func (n *Nimvle) CurrentBufferFilenameExtension() (string, error)

CurrentBufferFilenameExtension obtains the file name extension of the current buffer.

func (*Nimvle) Eval

func (n *Nimvle) Eval(exp string) (interface{}, error)

Eval expression

func (*Nimvle) GetContentFromBuffer

func (n *Nimvle) GetContentFromBuffer(buf nvim.Buffer) (string, error)

GetContentFromBuffer obtains the content of the buffer.

func (*Nimvle) GetContentFromCurrentBuffer

func (n *Nimvle) GetContentFromCurrentBuffer() (string, error)

GetContentFromCurrentBuffer obtains the content of the current buffer.

func (*Nimvle) GetVar

func (n *Nimvle) GetVar(varname string) (interface{}, error)

Get Variable (return `interface{}`)

func (*Nimvle) GetWindowList

func (n *Nimvle) GetWindowList() (map[string]int, error)

GetWindowList obtains window list. It depends on `NoahOrberg/vivid.vim`

func (*Nimvle) Input

func (n *Nimvle) Input(ask string) (string, error)

Input input in cmdline.

func (*Nimvle) Log

func (n *Nimvle) Log(message interface{}) error

Log is a wrapped `:echom`

func (*Nimvle) NewScratchBuffer

func (n *Nimvle) NewScratchBuffer(bufferName, ft string) (*nvim.Buffer, error)

NewScratchBuffer creates new scratch buffer.

func (*Nimvle) SetContentToBuffer

func (n *Nimvle) SetContentToBuffer(buf nvim.Buffer, content string) error

SetContentToBuffer writes content to buffer.

func (*Nimvle) SetStringerContentToBuffer

func (n *Nimvle) SetStringerContentToBuffer(buf nvim.Buffer, str fmt.Stringer) error

SetStringerContentToBuffer writes stringer content to buffer.

func (*Nimvle) ShowScratchBuffer

func (n *Nimvle) ShowScratchBuffer(scratch nvim.Buffer, str fmt.Stringer) error

ShowScratchBuffer shows selected buffer.

func (*Nimvle) SplitOpenBuffer

func (n *Nimvle) SplitOpenBuffer(buf nvim.Buffer) error

SplitOpenBuffer divides and opens buffer.

Jump to

Keyboard shortcuts

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