Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvim/plugin: fix typo in docs #160

Merged
merged 1 commit into from
Jul 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions nvim/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func New(v *nvim.Nvim) *Plugin {
}

// Disable support for "specs" method until path mechanism for supporting
// binary exectables with Nvim is worked out.
// binary executables with Nvim is worked out.
// err := v.RegisterHandler("specs", func(path string) ([]*pluginSpec, error) {
// return p.pluginSpecs, nil
// })
Expand Down Expand Up @@ -75,7 +75,7 @@ func (p *Plugin) handle(fn interface{}, spec *pluginSpec) {
// func([v *nvim.Nvim,] {args}) error
// func([v *nvim.Nvim,] {args})
//
// where {args} is zero or more arguments and {resultType} is the type of of a
// where {args} is zero or more arguments and {resultType} is the type of a
// return value. Call the handler from Nvim using the rpcnotify and rpcrequest
// functions:
//
Expand All @@ -97,7 +97,7 @@ type FunctionOptions struct {
// alphanumeric characters and '_', and must start with a capital letter.
Name string

// Eval is an expression evaluated in Nvim. The result is passed the
// Eval is an expression evaluated in Nvim. The result is passed to the
// handler function.
Eval string
}
Expand Down Expand Up @@ -171,7 +171,7 @@ type CommandOptions struct {
// :help :command-range
Range string

// Count specfies that thecommand accepts a count.
// Count specifies that the command accepts a count.
//
// N A count (default N) which is specified either in the line
// number position, or as an initial argument (like |:Next|).
Expand Down Expand Up @@ -203,7 +203,7 @@ type CommandOptions struct {
// Bang specifies that the command can take a ! modifier (like :q or :w).
Bang bool

// Register specifes that the first argument to the command can be an
// Register specifies that the first argument to the command can be an
// optional register name (like :del, :put, :yank).
Register bool

Expand Down Expand Up @@ -303,7 +303,7 @@ type AutocmdOptions struct {
// :help autocmd-once
Once bool

// Eval is evaluated in Nvim and the result is passed the the handler
// Eval is evaluated in Nvim and the result is passed to the handler
// function.
Eval string
}
Expand Down