nvim

package
v0.0.0-...-bc0ec6d Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2017 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	WindowHorizontal  WindowDirection = "horizontal"
	WindowVertical    WindowDirection = "vertical"
	WindowTopLeft     WindowPosition  = "topleft"
	WindowBottomRight WindowPosition  = "botright"

	CompletionNone         = ""
	CompletionAugroup      = "augroup"
	CompletionBuffer       = "buffer"
	CompletionBehave       = "behave"
	CompletionColor        = "color"
	CompletionCommand      = "command"
	CompletionCompiler     = "compiler"
	CompletionCscope       = "cscope"
	CompletionDir          = "dir"
	CompletionEnvironment  = "environment"
	CompletionEvent        = "event"
	CompletionExpression   = "expression"
	CompletionFile         = "file"
	CompletionFileInPath   = "file_in_path"
	CompletionFiletype     = "filetype"
	CompletionFunction     = "function"
	CompletionHelp         = "help"
	CompletionHighlight    = "highlight"
	CompletionHistory      = "history"
	CompletionLocale       = "locale"
	CompletionMapping      = "mapping"
	CompletionMenu         = "menu"
	CompletionOption       = "option"
	CompletionShellcmd     = "shellcmd"
	CompletionSign         = "sign"
	CompletionSyntax       = "syntax"
	CompletionSyntime      = "syntime"
	CompletionTag          = "tag"
	CompletionTagListfiles = "tag_listfiles"
	CompletionUser         = "user"
	CompletionVar          = "var"
	CompletionCustom       = "custom"
	CompletionCustomlist   = "customlist"
)

Variables

This section is empty.

Functions

func Escape

func Escape(str string) string

Types

type Choice

type Choice struct {
	Shortcut    byte
	Description string
}

type Choices

type Choices []Choice

func (Choices) String

func (cs Choices) String() string

type Nvim

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

func New

func New(v *cnvim.Nvim) *Nvim

func (*Nvim) Buffers

func (v *Nvim) Buffers() ([]*buffer.Buffer, error)

func (*Nvim) Call

func (v *Nvim) Call(cmd string, result interface{}) error

func (*Nvim) CallInt

func (v *Nvim) CallInt(cmd string) (int, error)

func (*Nvim) CallString

func (v *Nvim) CallString(cmd string) (string, error)

func (*Nvim) CommandOutput

func (v *Nvim) CommandOutput(cmd string) (string, error)

func (*Nvim) Confirm

func (v *Nvim) Confirm(prompt string, choices Choices) (Choice, error)

func (*Nvim) CreateWindow

func (v *Nvim) CreateWindow(d WindowDirection, p WindowPosition, name string) (*window.Window, error)

func (*Nvim) CreateWindowLeft

func (v *Nvim) CreateWindowLeft(name string) (*window.Window, error)

func (*Nvim) CreateWindowRight

func (v *Nvim) CreateWindowRight(name string) (*window.Window, error)

func (*Nvim) CurrentBuffer

func (v *Nvim) CurrentBuffer() (*buffer.Buffer, error)

func (*Nvim) CurrentBufferName

func (v *Nvim) CurrentBufferName() (string, error)

func (*Nvim) CurrentDirectory

func (v *Nvim) CurrentDirectory() (string, error)

func (*Nvim) CurrentWindow

func (v *Nvim) CurrentWindow() (*window.Window, error)

func (*Nvim) InputBool

func (v *Nvim) InputBool(prompt string) (bool, error)

func (*Nvim) InputString

func (v *Nvim) InputString(prompt, defaultText, completion string) (string, error)

func (*Nvim) InputStrings

func (v *Nvim) InputStrings(prompt string, defaultTexts []string, completion string) ([]string, error)

func (*Nvim) NearestDirectory

func (v *Nvim) NearestDirectory() string

func (*Nvim) PrintError

func (v *Nvim) PrintError(err error) error

func (*Nvim) Printf

func (v *Nvim) Printf(format string, args ...interface{}) error

func (*Nvim) SetCurrentDirectory

func (v *Nvim) SetCurrentDirectory(dir string) error

func (*Nvim) SetRegisterYank

func (v *Nvim) SetRegisterYank(value string) error

func (*Nvim) SetVarBool

func (v *Nvim) SetVarBool(name string, value bool) error

func (*Nvim) SetVarInt

func (v *Nvim) SetVarInt(name string, value int) error

func (*Nvim) SetVarString

func (v *Nvim) SetVarString(name, value string) error

func (*Nvim) VarBool

func (v *Nvim) VarBool(name string) (bool, error)

func (*Nvim) VarInt

func (v *Nvim) VarInt(name string) (int, error)

func (*Nvim) VarString

func (v *Nvim) VarString(name string) (string, error)

func (*Nvim) Windows

func (v *Nvim) Windows() ([]*window.Window, error)

type WindowDirection

type WindowDirection string

type WindowPosition

type WindowPosition string

Jump to

Keyboard shortcuts

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