Robitx / gp.nvim

Gp.nvim (GPT prompt) Neovim AI plugin: ChatGPT sessions & Instructable text/code operations & Speech to text [OpenAI]
MIT License
537 stars 49 forks source link

Text is highlighted whilst generated #96

Closed 8veStory closed 5 months ago

8veStory commented 5 months ago

Hi, I notice that during generation there is a highlight over the text, which removes the syntax highlighting. Highlighting is cleared when generation is complete. When using slower models like GPT4 or when generation takes a long time, it makes the text a little hard to read whilst it is generating.

Examples of Highlighting

My Example (gif): example

Another Example from demo at 2:31. https://youtu.be/X-cT7s47PLo?feature=shared&t=151

Examples of No Highlighting

However, I noticed that from previous screencasts this did not seem to be the case? Example (from front page):

Is the highlight intended behaviour?

Robitx commented 5 months ago

@8veStory Hey, highlight of generated content is intended, but not at the expense of syntax highlighting. Please try the latest version, I've tried to use "less aggressive" highlight group which should have better behavior across color schemes. What color scheme are you using? So I could test yours directly.

8veStory commented 5 months ago

Thanks for the quick response! I was using the catppuccin mocha theme (link). I've updated to the latest version and it appears to be fixed; the highlight no longer covers the syntax highlighting. Thanks again!