fix: typo
This commit is contained in:
parent
18eb8fd1c4
commit
70b2a790c3
1 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ local queries = {
|
|||
---@param parent_type string[]
|
||||
---@param node TSNode
|
||||
---@return TSNode?
|
||||
local function get_parrent_node(parent_type, node)
|
||||
local function get_parent_node(parent_type, node)
|
||||
---@type TSNode?
|
||||
local current = node
|
||||
while current do
|
||||
|
|
@ -93,7 +93,7 @@ local function do_stuff(bufnr, parent_type, query)
|
|||
error "No nodes found under the cursor"
|
||||
end
|
||||
|
||||
local parent_node = get_parrent_node(parent_type, node)
|
||||
local parent_node = get_parent_node(parent_type, node)
|
||||
if not parent_node then
|
||||
error "No parent node found under the cursor"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue