Skip to content

Commit

Permalink
Make opts parameter to vim.api.nvim_buf_create_user_command required
Browse files Browse the repository at this point in the history
When this parameter is omitted, NeoVim throws an error. It doesn't need to be a populated table, but it can't be nil.
  • Loading branch information
speelbarrow committed Jul 28, 2023
1 parent f57e521 commit 5215734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/stable/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function vim.api.nvim_buf_clear_namespace(buffer, ns_id, line_start, line_end) e
--- @param buffer buffer
--- @param name string
--- @param command object
--- @param opts? table<string, any>
--- @param opts table<string, any>
function vim.api.nvim_buf_create_user_command(buffer, name, command, opts) end

-- Removes an |extmark|.
Expand Down

0 comments on commit 5215734

Please sign in to comment.