rest.nvim icon indicating copy to clipboard operation
rest.nvim copied to clipboard

Syntax highlight for {{URL}}, and global header

Open dakennguyen opened this issue 3 years ago • 3 comments

Hi, I have something like this in my http file: image Some issues/suggestions that I have:

  1. Syntax highlight only works if the request begin with http:// or https://. Could we have syntax highlight even if the env variable is at the beginning as well?
  2. It's nice that we have global header, so I don't have to repeat Jwt-Token every time (sometimes I have more headers, so you understand the inconvenient)

Thank you so much for your time!

dakennguyen avatar Oct 08 '21 04:10 dakennguyen

I came to make an issue about those 2 exact things, I hope this gets attention.

RaafatTurki avatar Nov 05 '21 13:11 RaafatTurki

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.

NTBBloodbath avatar Aug 24 '22 08:08 NTBBloodbath

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.

sigzegv avatar Dec 09 '22 11:12 sigzegv