jellydn / hurl.nvim

Hurl.nvim is a Neovim plugin designed to run HTTP requests directly from `.hurl` files. Elevate your API development workflow by executing and viewing responses without leaving your editor.
https://gyazo.com/19492e8b5366cec3f22d5fd97a63f37a
MIT License
148 stars 15 forks source link

Add treesitter support #103

Closed hsanson closed 6 months ago

hsanson commented 6 months ago

This PR uses treesitter hurl parser to locate the HURL entry at the current cursor position. This is more efficient and reliable than parsing based on HTTP verbs and allows executing HurlRunnerAt from any place as long as it is inside a HURL entry.

changeset-bot[bot] commented 6 months ago

⚠️ No Changeset found

Latest commit: eecbe11a8c35e422c039d819013d94222d23218c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

sweep-ai[bot] commented 6 months ago

Apply Sweep Rules to your PR?

This is an automated message generated by Sweep AI.

jellydn commented 6 months ago

Thanks @hsanson for your PR. This looks good. I will take a try and merge this sometime this week.

jellydn commented 6 months ago

@all-contributors add @hsanson for code,doc.

allcontributors[bot] commented 6 months ago

@jellydn

I've put up a pull request to add @hsanson! :tada:

jellydn commented 6 months ago

FYI - I've tested the run at entry and it doesn't work so I've reverted this util function.

https://github.com/jellydn/hurl.nvim/commit/f77a52f30629091d2d0032ee2edb63703d7d407d