diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index 07e6d42e1c..779016f2d1 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -8172,7 +8172,7 @@ function vim.fn.setqflist(list, action, what) end --- --- @param regname string --- @param value any ---- @param options? table +--- @param options? string --- @return any function vim.fn.setreg(regname, value, options) end diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index 87850422b2..e03ee77141 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -9756,7 +9756,7 @@ M.funcs = { ]=], name = 'setreg', - params = { { 'regname', 'string' }, { 'value', 'any' }, { 'options', 'table' } }, + params = { { 'regname', 'string' }, { 'value', 'any' }, { 'options', 'string' } }, signature = 'setreg({regname}, {value} [, {options}])', }, settabvar = {