aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/help.lua
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2025-01-27 14:25:06 -0800
committerGitHub <noreply@github.com>2025-01-27 14:25:06 -0800
commitc47496791a80f8b6b9e37866010305482de4c8ca (patch)
tree03cc397c4a76b49e3b2f24c3a7da9924012dd73e /runtime/ftplugin/help.lua
parent6aa42e8f92bd8bea49b7b2accfe4ab67a5344e41 (diff)
downloadrneovim-c47496791a80f8b6b9e37866010305482de4c8ca.tar.gz
rneovim-c47496791a80f8b6b9e37866010305482de4c8ca.tar.bz2
rneovim-c47496791a80f8b6b9e37866010305482de4c8ca.zip
docs(treesitter): fix TSNode:range() type signature #32224
Uses an overload to properly show the different return type based on the input parameter.
Diffstat (limited to 'runtime/ftplugin/help.lua')
-rw-r--r--runtime/ftplugin/help.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ftplugin/help.lua b/runtime/ftplugin/help.lua
index 479e4d8b9f..a6169a1d9d 100644
--- a/runtime/ftplugin/help.lua
+++ b/runtime/ftplugin/help.lua
@@ -53,7 +53,7 @@ for _, match, metadata in query:iter_matches(tree:root(), 0, 0, -1) do
for id, nodes in pairs(match) do
local name = query.captures[id]
local node = nodes[1]
- local start, _, end_ = node:parent():range() --[[@as integer]]
+ local start, _, end_ = node:parent():range()
if name == 'code' then
vim.api.nvim_buf_set_extmark(0, run_message_ns, start, 0, {