aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/func.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-02-12 07:15:20 -0500
committerGitHub <noreply@github.com>2026-02-12 07:15:20 -0500
commitfd69b7111912ae5ccb01327b130f582be23e44dc (patch)
tree083a32cfd469b412babb5b4e8cddf2a900dacf4d /runtime/lua/vim/func.lua
parent16da47f4749b49660d85b3d00aaa00d66098027f (diff)
downloadrneovim-fd69b7111912ae5ccb01327b130f582be23e44dc.tar.gz
rneovim-fd69b7111912ae5ccb01327b130f582be23e44dc.tar.bz2
rneovim-fd69b7111912ae5ccb01327b130f582be23e44dc.zip
refactor(lsp): drop once(), use _memoize() #37829
Diffstat (limited to 'runtime/lua/vim/func.lua')
-rw-r--r--runtime/lua/vim/func.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/runtime/lua/vim/func.lua b/runtime/lua/vim/func.lua
index 47067ec4b9..654f2e6299 100644
--- a/runtime/lua/vim/func.lua
+++ b/runtime/lua/vim/func.lua
@@ -24,13 +24,10 @@ local M = {}
--- @generic F: function
--- @param hash integer|string|function Hash function to create a hash to use as a key to
--- store results. Possible values:
---- - When integer, refers to the index of an argument of {fn} to hash.
---- This argument can have any type.
+--- - When integer, refers to the index of a {fn} argument (of any type) to hash.
--- - When function, is evaluated using the same arguments passed to {fn}.
---- - When `concat`, the hash is determined by string concatenating all the
---- arguments passed to {fn}.
---- - When `concat-n`, the hash is determined by string concatenating the
---- first n arguments passed to {fn}.
+--- - When "concat", hash is determined by string-concatenating all {fn} arguments.
+--- - When "concat-n", hash is determined by string-concatenating the first n {fn} arguments.
---
--- @param fn F Function to memoize.
--- @param weak? boolean Use a weak table (default `true`)