From e020ca7950a272b29e8213b49751188bee67dd7b Mon Sep 17 00:00:00 2001 From: Noah Friedman Date: Sat, 27 May 2023 20:32:10 -0400 Subject: [PATCH] Make `opts` parameter to `vim.api.nvim_buf_create_user_command` required When this parameter is omitted, NeoVim throws an error. It doesn't need to be a populated table, but it can't be nil. --- types/stable/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/stable/api.lua b/types/stable/api.lua index 901e1d45..f8873b2a 100644 --- a/types/stable/api.lua +++ b/types/stable/api.lua @@ -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 +--- @param opts table function vim.api.nvim_buf_create_user_command(buffer, name, command, opts) end -- Removes an |extmark|.