neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 53a3e6ac879d89039c69d3e44f46ed9bf857a9d9
parent 320c77fa528e96aac0931383160fa9ce3f7a3eec
Author: xvzc <45588457+xvzc@users.noreply.github.com>
Date:   Thu, 28 Dec 2023 20:13:46 +0900

docs(eval): add parameter type for vim.fn.mode() (#26776)


Diffstat:
Mruntime/lua/vim/_meta/vimfn.lua | 3++-
Msrc/nvim/eval.lua | 2+-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua @@ -5829,8 +5829,9 @@ function vim.fn.mkdir(name, flags, prot) end --- the leading character(s). --- Also see |visualmode()|. --- +--- @param expr? any --- @return any -function vim.fn.mode() end +function vim.fn.mode(expr) end --- Convert a list of Vimscript objects to msgpack. Returned value is a --- |readfile()|-style list. When {type} contains "B", a |Blob| is diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua @@ -7057,7 +7057,7 @@ M.funcs = { ]=], name = 'mode', - params = {}, + params = { { 'expr', 'any' } }, signature = 'mode([expr])', }, msgpackdump = {