Documentation ¶
Overview ¶
Package autocmd hooks the Neovim autocmd and run the go commands.
Index ¶
- func Register(ctx context.Context, p *plugin.Plugin, buildContext *buildctxt.Context, ...)
- type Autocmd
- func (a *Autocmd) BufEnter(pctx context.Context, eval *bufEnterEval)
- func (a *Autocmd) BufReadPre(ctx context.Context, eval *bufReadPreEval)
- func (a *Autocmd) BufWritePost(pctx context.Context, eval *bufWritePostEval) error
- func (a *Autocmd) BufWritePre(pctx context.Context, eval *bufWritePreEval)
- func (a *Autocmd) VimEnter(ctx context.Context, cfg *config.Config)
- func (a *Autocmd) VimLeavePre(pctx context.Context)
- func (a *Autocmd) WinEnter(pctx context.Context, eval *winEnterEval) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Autocmd ¶
Autocmd represents a autocmd context.
func (*Autocmd) BufEnter ¶
BufEnter gets the current buffer number, windows ID and set context from the directory structure on BufEnter autocmd.
func (*Autocmd) BufReadPre ¶
BufReadPre gets user config variables and assign to global variable when autocmd BufReadPre.
func (*Autocmd) BufWritePost ¶
BufWritePost run the 'autosave' commands on BufWritePost autocmd.
func (*Autocmd) BufWritePre ¶
BufWritePre run the commands on BufWritePre autocmd.
func (*Autocmd) VimEnter ¶
VimEnter gets user config variables and assign to global variable when autocmd VimEnter.
func (*Autocmd) VimLeavePre ¶
Click to show internal directories.
Click to hide internal directories.