rest.nvim
rest.nvim copied to clipboard
Syntax highlight for {{URL}}, and global header
Hi, I have something like this in my http
file:
Some issues/suggestions that I have:
- Syntax highlight only works if the request begin with
http://
orhttps://
. Could we have syntax highlight even if the env variable is at the beginning as well? - It's nice that we have
global header
, so I don't have to repeatJwt-Token
every time (sometimes I have more headers, so you understand the inconvenient)
Thank you so much for your time!
I came to make an issue about those 2 exact things, I hope this gets attention.
Syntax highlighting issue was resolved by tree-sitter-http#3 PR.
About global headers I'll take a look at what RFC 2616 offers regarding to this scope. If there's nothing about it in the specs I'll make a special syntax for this.
any news about this feature? It sounds really usefull for me. Also it would be usefull not having to inform the URL on each request, put take the global one for the active file. Like setting the Host:
parameter but globally.