From 7ad2e3c64562bfb0ea2f7be305e4b0e6d2474d64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maria=20Jos=C3=A9=20Solano?= Date: Tue, 27 Feb 2024 03:53:49 -0800 Subject: [PATCH] docs: fix type of setreg() argument {options} (#27631) --- runtime/lua/vim/_meta/vimfn.lua | 2 +- src/nvim/eval.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 = {