Skip to content

Highlight request on run() and last()#60

Merged
jens1205 merged 11 commits intorest-nvim:mainfrom
jens1205:highlight-request
Aug 31, 2021
Merged

Highlight request on run() and last()#60
jens1205 merged 11 commits intorest-nvim:mainfrom
jens1205:highlight-request

Conversation

@jens1205
Copy link
Copy Markdown
Contributor

New feature "highlight request on run() and last()". In order to implement this, we had to switch from synchronous call to plenary-curl to asynchronous with callback. Implementation is similar to the build-in vim.highlight.on_yank. This feature is enabled by default.

Additionally, the old feature of moving the cursor to the current request line is disabled by default as the highlighting shows more accurate what is send and in my opinion it is nicer to have the cursor stay in place.

@NTBBloodbath : Any objections?

Copy link
Copy Markdown
Member

@NTBBloodbath NTBBloodbath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking really good man, thank you for doing this!

I don't have any objection haha, but found some checks to == true that makes no sense imo since the conditionals implicitly do this but didn't wanted to be an ass and request a ton of changes for all of them so you know, just change it and feel free to merge. Awesome job man, thanks for contributing!

Comment thread lua/rest-nvim/init.lua Outdated
Comment thread lua/rest-nvim/curl/init.lua Outdated
@NTBBloodbath NTBBloodbath added the enhancement New feature or request label Aug 30, 2021
@jens1205 jens1205 merged commit 9b4cf1e into rest-nvim:main Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants