mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
doc + extmarks tweaks #11421
- nvim_buf_get_extmarks: rename "amount" => "limit" - rename `set_extmark_index_from_obj`
This commit is contained in:
@@ -226,16 +226,17 @@ function vim.tbl_add_reverse_lookup(o)
|
||||
return o
|
||||
end
|
||||
|
||||
-- Extends a list-like table with the values of another list-like table.
|
||||
--
|
||||
-- NOTE: This *mutates* dst!
|
||||
-- @see |extend()|
|
||||
--
|
||||
-- @param dst list which will be modified and appended to.
|
||||
-- @param src list from which values will be inserted.
|
||||
-- @param start Start index on src. defaults to 1
|
||||
-- @param finish Final index on src. defaults to #src
|
||||
-- @returns dst
|
||||
--- Extends a list-like table with the values of another list-like table.
|
||||
---
|
||||
--- NOTE: This mutates dst!
|
||||
---
|
||||
--@see |vim.tbl_extend()|
|
||||
---
|
||||
--@param dst list which will be modified and appended to.
|
||||
--@param src list from which values will be inserted.
|
||||
--@param start Start index on src. defaults to 1
|
||||
--@param finish Final index on src. defaults to #src
|
||||
--@returns dst
|
||||
function vim.list_extend(dst, src, start, finish)
|
||||
vim.validate {
|
||||
dst = {dst, 't'};
|
||||
|
Reference in New Issue
Block a user