Lines Matching refs:list
11 3. List userdata |lua-list|
119 vim.list([arg]) Returns an empty list or, if "arg" is a Lua
121 "sequence"), returns a list l such that l[i] =
124 the list. See also |lua-eval| for conversion
127 :echo luaeval('vim.list(t)')
155 number "arg" in the buffer list or, if "arg"
161 list or else the current buffer.
170 Lua's "type" function, but returns "list",
172 {arg} is a list, dictionary, funcref, buffer,
174 :lua l = vim.list()
176 :" list
195 userdata (see |lua-list| and |lua-dict|).
260 3. List userdata *lua-list*
263 Vim's syntax for lists. Since lists are objects, changes in list references in
264 Lua are reflected in Vim and vice-versa. A list "l" has the following
273 o "#l" is the number of items in list "l", equivalent to "len(l)"
278 be added to the end of the list by "l[#l + 1] = newitem"
280 o "table.insert(l, newitem)" inserts an item at the end of the list.
293 position "pos" in the list. The default value for "pos" is 0.
299 :lua l:add(vim.list())
314 Similarly to list userdata, dict userdata represent vim dictionaries; since
422 o "b.number" contains the position of buffer "b" in the buffer list
431 o "b:next()" returns the buffer next to "b" in the buffer list.
433 list.
450 local b = vim.buffer(true) -- first buffer in list
506 list, dict, blob, and funcref userdata are converted to their Vim respective
514 :lua a = vim.list():add('newlist')