From ec6670080a71835a54e28a0f5489b0fad5f4e531 Mon Sep 17 00:00:00 2001 From: Sean Dewar <6256228+seandewar@users.noreply.github.com> Date: Tue, 1 Apr 2025 10:19:14 +0100 Subject: [PATCH] docs(eval): fix dict param type of mapset Match maparg's return type. --- runtime/doc/builtin.txt | 2 +- runtime/lua/vim/_meta/vimfn.lua | 4 ++-- src/nvim/eval.lua | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 70f8264605..a4061e7228 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -6090,7 +6090,7 @@ mapset({dict}) < Parameters: ~ - • {dict} (`boolean`) + • {dict} (`table`) Return: ~ (`any`) diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index 2d87d203d9..157799f36e 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -5479,7 +5479,7 @@ function vim.fn.mapnew(expr1, expr2) end --- @param mode string --- @param abbr? boolean ---- @param dict? boolean +--- @param dict? table --- @return any function vim.fn.mapset(mode, abbr, dict) end @@ -5519,7 +5519,7 @@ function vim.fn.mapset(mode, abbr, dict) end --- endfor --- < --- ---- @param dict boolean +--- @param dict table --- @return any function vim.fn.mapset(dict) end diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index f95e79d66d..9f662c6457 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -6762,7 +6762,7 @@ M.funcs = { args = { 1, 3 }, base = 1, name = 'mapset', - params = { { 'mode', 'string' }, { 'abbr', 'boolean' }, { 'dict', 'boolean' } }, + params = { { 'mode', 'string' }, { 'abbr', 'boolean' }, { 'dict', 'table' } }, signature = 'mapset({mode}, {abbr}, {dict})', }, mapset__1 = { @@ -6806,7 +6806,7 @@ M.funcs = { < ]=], name = 'mapset', - params = { { 'dict', 'boolean' } }, + params = { { 'dict', 'table' } }, signature = 'mapset({dict})', }, match = {