aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2024-09-29 11:54:12 +0200
committerGitHub <noreply@github.com>2024-09-29 09:54:12 +0000
commit2c937d723dd6f64705bf4d901254683ba32b2846 (patch)
treed58b8905507c591f90dd86a56fb45d7643e79c60 /runtime/lua/vim
parent1405034ba3b1765e451304be0ee8ddc4d285ee87 (diff)
downloadrneovim-2c937d723dd6f64705bf4d901254683ba32b2846.tar.gz
rneovim-2c937d723dd6f64705bf4d901254683ba32b2846.tar.bz2
rneovim-2c937d723dd6f64705bf4d901254683ba32b2846.zip
docs: misc (#30177)
Co-authored-by: Christian Clason <c.clason@uni-graz.at> Co-authored-by: Riley Bruins <ribru17@hotmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/_editor.lua2
-rw-r--r--runtime/lua/vim/treesitter.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/_editor.lua b/runtime/lua/vim/_editor.lua
index cb864bd974..bdca97cfb8 100644
--- a/runtime/lua/vim/_editor.lua
+++ b/runtime/lua/vim/_editor.lua
@@ -222,7 +222,7 @@ do
--- -- Scrub ANSI color codes from paste input.
--- lines[i] = line:gsub('\27%[[0-9;mK]+', '')
--- end
- --- overridden(lines, phase)
+ --- return overridden(lines, phase)
--- end
--- end)(vim.paste)
--- ```
diff --git a/runtime/lua/vim/treesitter.lua b/runtime/lua/vim/treesitter.lua
index 8d5cd2eeec..c21e0aff07 100644
--- a/runtime/lua/vim/treesitter.lua
+++ b/runtime/lua/vim/treesitter.lua
@@ -261,7 +261,7 @@ end
---@param row integer Position row
---@param col integer Position column
---
----@return {capture: string, lang: string, metadata: table}[]
+---@return {capture: string, lang: string, metadata: vim.treesitter.query.TSMetadata}[]
function M.get_captures_at_pos(bufnr, row, col)
if bufnr == 0 then
bufnr = api.nvim_get_current_buf()