aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-02-21 17:39:29 +0100
committerChristian Clason <c.clason@uni-graz.at>2023-02-23 10:25:22 +0100
commit6dfbeb0d990d24657754463c6ab155c19e7f5f56 (patch)
tree00de2dd45d9a5bb3ba743a22974aa9fded165a08 /runtime/lua/vim
parent1c37553476f268d08d290dfee1fa3da4135b54b4 (diff)
downloadrneovim-6dfbeb0d990d24657754463c6ab155c19e7f5f56.tar.gz
rneovim-6dfbeb0d990d24657754463c6ab155c19e7f5f56.tar.bz2
rneovim-6dfbeb0d990d24657754463c6ab155c19e7f5f56.zip
docs: fix more treesitter parsing errors
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r--runtime/lua/vim/treesitter.lua2
-rw-r--r--runtime/lua/vim/treesitter/query.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/runtime/lua/vim/treesitter.lua b/runtime/lua/vim/treesitter.lua
index c4df5b2d24..44922bbc4d 100644
--- a/runtime/lua/vim/treesitter.lua
+++ b/runtime/lua/vim/treesitter.lua
@@ -218,7 +218,7 @@ end
---@param row integer Position row
---@param col integer Position column
---
----@return table[] List of captures `{ capture = "capture name", metadata = { ... } }`
+---@return table[] List of captures `{ capture = "name", metadata = { ... } }`
function M.get_captures_at_pos(bufnr, row, col)
if bufnr == 0 then
bufnr = a.nvim_get_current_buf()
diff --git a/runtime/lua/vim/treesitter/query.lua b/runtime/lua/vim/treesitter/query.lua
index 83910316a6..58a29f2fe0 100644
--- a/runtime/lua/vim/treesitter/query.lua
+++ b/runtime/lua/vim/treesitter/query.lua
@@ -639,7 +639,7 @@ end
--- -- typically useful info about the node:
--- local type = node:type() -- type of the captured node
--- local row1, col1, row2, col2 = node:range() -- range of the capture
---- ... use the info here ...
+--- -- ... use the info here ...
--- end
--- </pre>
---
@@ -693,7 +693,7 @@ end
---
--- local node_data = metadata[id] -- Node level metadata
---
---- ... use the info here ...
+--- -- ... use the info here ...
--- end
--- end
--- </pre>