Skip to content

Commit bf2d37b

Browse files
committed
nvim: rename to nvim{_buf}_create_user_command
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent 7854cde commit bf2d37b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

nvim/api_def.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ func EvalStatusLine(name string, opts map[string]interface{}) (statusline map[st
888888
name(nvim_eval_statusline)
889889
}
890890

891-
// AddUserCommand create a new user command.
891+
// CreateUserCommand create a new user command.
892892
//
893893
// name is name of the new user command. Must begin with an uppercase letter.
894894
//
@@ -906,8 +906,8 @@ func EvalStatusLine(name string, opts map[string]interface{}) (statusline map[st
906906
//
907907
// force (bool, default true)
908908
// Override any previous definition.
909-
func AddUserCommand(name string, command UserCommand, opts map[string]interface{}) {
910-
name(nvim_add_user_command)
909+
func CreateUserCommand(name string, command UserCommand, opts map[string]interface{}) {
910+
name(nvim_create_user_command)
911911
}
912912

913913
// DeleteUserCommand delete a user-defined command.
@@ -1139,11 +1139,11 @@ func BufferMark(buffer Buffer, name string) (pos [2]int) {
11391139
name(nvim_buf_get_mark)
11401140
}
11411141

1142-
// AddBufferUserCommand create a new user command |user-commands| in the given buffer.
1142+
// CreateBufferUserCommand create a new user command |user-commands| in the given buffer.
11431143
//
11441144
// Only commands created with |:command-buffer| or this function can be deleted with this function.
1145-
func AddBufferUserCommand(buffer Buffer, name string, command UserCommand, opts map[string]interface{}) {
1146-
name(nvim_buf_add_user_command)
1145+
func CreateBufferUserCommand(buffer Buffer, name string, command UserCommand, opts map[string]interface{}) {
1146+
name(nvim_buf_create_user_command)
11471147
}
11481148

11491149
// DeleteBufferUserCommand create a new user command |user-commands| in the given buffer.

0 commit comments

Comments
 (0)