Skip to content

Commit

Permalink
Fix find entry via treesitter (#124)
Browse files Browse the repository at this point in the history
* Fix HurlRunnterToEntry using treesitter

* chore(doc): auto generate docs

* Fix find entry method returing two nodes range.

Lua index starts on 1 so we were accidentally returing the line range of
the current node plus one line of the next node.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 14, 2024
1 parent ae57eba commit 307e582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/hurl/http_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ local function find_hurl_entry_positions_in_buffer()
return {
current = current_node_idx,
start_line = r1 + 1,
end_line = r2 + 1,
end_line = r2,
}
end
end
Expand Down

0 comments on commit 307e582

Please sign in to comment.