docs(lua): fix treesitter parsing errors

This commit is contained in:
Christian Clason
2022-12-28 14:20:42 +01:00
parent 9cc37e057a
commit dfb840970c
3 changed files with 4 additions and 6 deletions

View File

@@ -391,7 +391,7 @@ end
---@param pos2 integer[] (line, column) tuple marking end of region
---@param regtype string type of selection, see |setreg()|
---@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)
if not vim.api.nvim_buf_is_loaded(bufnr) then
vim.fn.bufload(bufnr)