-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: conceal/render without actually entering a buffer #210
Comments
Are you able to re-create this using some standard commands to reproduce it? I don't exactly want to figure something out specific to a plugin. But if it only occurs in the ChatGPT preview window I can take a look at some point.
Telescope buffers are a special case that there is no way to get working. Some more details on that here: https://github.com/MeanderingProgrammer/render-markdown.nvim/blob/main/doc/limitations.md#does-not-run-in-telescope-preview |
## Details Issue: #210 Sometimes the buffers associated with windows are switched from another window. An example of this is the ChatGPT plugin in the issue above where selecting a session changes the contents of the window, but from the sessions window. To get around this rather than always using the current window assuming events are triggered directly where rendering is needed use the complete list of windows associated with a buffer and only use the current window if it is contained in that list. This is part of the fix to enable this, another requires the plugin to trigger the TextChanged event so we can update what's rendered.
To fix the However there is another change needed from the ChatGPT plugin, just some way for me to know that the preview buffer contents have been changed so I opened a PR for that here: jackMort/ChatGPT.nvim#474. |
This so good. Thanks :) |
Closing, any followup will be in the |
Neovim version (nvim -v)
NVIM v0.11.0-dev-774+g3b54adc6c6
Neovim distribution
N/A
Operating system
Arch
Terminal emulator / GUI
Kitty
Describe the bug
If a buffer is loaded but the cursor is not inside the window the rendering doesn't actually happen. For instance in the GIF below I switch between different ChatGPT sessions and unless I actually get into the output window/buffer there is no rendering.
Similary I was wondering whether it was possible to have rendering in telescope preview buffer.
Expected behavior
Have rendering when the buffer/window is shown. Dunnno if this is problem with ChatGPT and telecope plugins per se.
Healthcheck output
Plugin configuration
Plugin error log
Confirmations
Additional information
No response
The text was updated successfully, but these errors were encountered: