Skip to content

Commit 1a377fa

Browse files
authored
Fix goto_definition_lsp_fallback (nvim-treesitter#19)
Ref nvim-treesitter#18 (comment)
1 parent edf1790 commit 1a377fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-treesitter-refactor/navigation.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function M.goto_definition(bufnr, fallback_function)
1616

1717
local definition = locals.find_definition(node_at_point, bufnr)
1818

19-
if fallback_function and definition.id == node_at_point.id then
19+
if fallback_function and definition == node_at_point then
2020
fallback_function()
2121
else
2222
ts_utils.goto_node(definition)

0 commit comments

Comments
 (0)