rest-nvim / tree-sitter-http

HTTP grammar for tree-sitter
MIT License
34 stars 17 forks source link

Refactor #10

Closed erasin closed 1 year ago

erasin commented 1 year ago

I rewrote the request part, modified the json_body , and appended the xml_body.

It's perfectly work with helix editor.

NTBBloodbath commented 1 year ago

Hey, I'm loving all the changes but why did you remove embedded JSON parser and rolled out a custom one? Just being curious there.

Cheers

erasin commented 1 year ago

The reason is that like vim, helix tree-sitter has support injections.scm, by setting injections to support json, xml, reduce the size of the compiled file.

NTBBloodbath commented 1 year ago

Woops, I've been somewhat busy and completely forgot to merge this one, my apologies!

Thank you so much again for the changes!

erasin commented 1 year ago

Thanks merged. In helix pr, use hurl replace rest-client. Because helix not support plugins now, and the hurl support cli and chaining request.