@@ -125,9 +125,9 @@ Vim evaluation and command execution, and others.
125125 Non-numeric keys are not used to initialize
126126 the list. See also | lua-eval | for conversion
127127 rules. Example: >
128- :lua t = {math.pi, false, say = 'hi'}
129- :echo luaeval('vim.list(t)')
130- :" [3.141593, v:false], 'say' is ignored
128+ :lua t = {math.pi, false, say = 'hi'}
129+ :echo luaeval('vim.list(t)')
130+ :" [3.141593, v:false], 'say' is ignored
131131<
132132 vim.dict([arg] ) Returns an empty dictionary or, if "arg" is a
133133 Lua table, returns a dict d such that d[k] =
@@ -136,12 +136,14 @@ Vim evaluation and command execution, and others.
136136 strings. Keys that are not strings are not
137137 used to initialize the dictionary. See also
138138 | lua-eval | for conversion rules. Example: >
139- :lua t = {math.pi, false, say = 'hi'}
140- :echo luaeval('vim.dict(t)')
141- :" {'say': 'hi'}, numeric keys ignored
139+ :lua t = {math.pi, false, say = 'hi'}
140+ :echo luaeval('vim.dict(t)')
141+ :" {'1': 3.141593, '2': v:false,
142+ :" 'say': 'hi'}
142143<
143144 vim.funcref({name} ) Returns a Funcref to function {name} (see
144- | Funcref | ). It is equivalent to Vim's function().
145+ | Funcref | ). It is equivalent to Vim's
146+ function().
145147
146148 vim.buffer([arg] ) If "arg" is a number, returns buffer with
147149 number "arg" in the buffer list or, if "arg"
0 commit comments