mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
docs(lua): fix treesitter parsing errors
This commit is contained in:
@@ -1502,8 +1502,7 @@ region({bufnr}, {pos1}, {pos2}, {regtype}, {inclusive}) *vim.region()*
|
|||||||
end-inclusive
|
end-inclusive
|
||||||
|
|
||||||
Return: ~
|
Return: ~
|
||||||
table<integer, {}> region lua table of the form {linenr =
|
(table) region Table of the form `{linenr = {startcol,endcol}}`
|
||||||
{startcol,endcol}}
|
|
||||||
|
|
||||||
schedule_wrap({cb}) *vim.schedule_wrap()*
|
schedule_wrap({cb}) *vim.schedule_wrap()*
|
||||||
Defers callback `cb` until the Nvim API is safe to call.
|
Defers callback `cb` until the Nvim API is safe to call.
|
||||||
@@ -1711,8 +1710,7 @@ split({s}, {sep}, {kwargs}) *vim.split()*
|
|||||||
Parameters: ~
|
Parameters: ~
|
||||||
• {s} (string) String to split
|
• {s} (string) String to split
|
||||||
• {sep} (string) Separator or pattern
|
• {sep} (string) Separator or pattern
|
||||||
• {kwargs} ({plain: boolean, trimempty: boolean}|nil) Keyword
|
• {kwargs} (table|nil) Keyword arguments:
|
||||||
arguments:
|
|
||||||
• plain: (boolean) If `true` use `sep` literally (passed to
|
• plain: (boolean) If `true` use `sep` literally (passed to
|
||||||
string.find)
|
string.find)
|
||||||
• trimempty: (boolean) If `true` remove empty items from the
|
• trimempty: (boolean) If `true` remove empty items from the
|
||||||
|
@@ -391,7 +391,7 @@ end
|
|||||||
---@param pos2 integer[] (line, column) tuple marking end of region
|
---@param pos2 integer[] (line, column) tuple marking end of region
|
||||||
---@param regtype string type of selection, see |setreg()|
|
---@param regtype string type of selection, see |setreg()|
|
||||||
---@param inclusive boolean indicating whether the selection is end-inclusive
|
---@param inclusive boolean indicating whether the selection is end-inclusive
|
||||||
---@return table<integer, {}> region lua table of the form {linenr = {startcol,endcol}}
|
---@return table region Table of the form `{linenr = {startcol,endcol}}`
|
||||||
function vim.region(bufnr, pos1, pos2, regtype, inclusive)
|
function vim.region(bufnr, pos1, pos2, regtype, inclusive)
|
||||||
if not vim.api.nvim_buf_is_loaded(bufnr) then
|
if not vim.api.nvim_buf_is_loaded(bufnr) then
|
||||||
vim.fn.bufload(bufnr)
|
vim.fn.bufload(bufnr)
|
||||||
|
@@ -113,7 +113,7 @@ end
|
|||||||
---
|
---
|
||||||
---@param s string String to split
|
---@param s string String to split
|
||||||
---@param sep string Separator or pattern
|
---@param sep string Separator or pattern
|
||||||
---@param kwargs ({plain: boolean, trimempty: boolean}|nil) Keyword arguments:
|
---@param kwargs (table|nil) Keyword arguments:
|
||||||
--- - plain: (boolean) If `true` use `sep` literally (passed to string.find)
|
--- - plain: (boolean) If `true` use `sep` literally (passed to string.find)
|
||||||
--- - trimempty: (boolean) If `true` remove empty items from the front
|
--- - trimempty: (boolean) If `true` remove empty items from the front
|
||||||
--- and back of the list
|
--- and back of the list
|
||||||
|
Reference in New Issue
Block a user