-
Notifications
You must be signed in to change notification settings - Fork 177
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
feature: Can we use real buffer for preview? #435
Comments
Hmm, for some reason I don't even have syntax highlight. Previews are just white text? |
@yavorski highlights comes from treesitter.start, you can remove that pcall to see if there are errors |
well it will also be nice to be able to edit inside of preview if its a real buffer |
@xzbdmw No difference, there is no highlight, screenshot attached. |
Then it maybe a bug, you can file a issue |
@yavorski the issue you had was specifically for unloaded typescript files, and was caused due to a quirk in how the ftdetect for typescript works in Neovim. I was able to fix it. |
You can now set |
Did you check the docs?
Is your feature request related to a problem? Please describe.
I v2 the auto_preview actually opens the buffer and set cursor to location, while in v3 there is only syntax highlight in preview, which makes some plugin that reacts to bufenter no longer works, for example, gitsigns don't work on preview, and builtin diagnose right align to cursorline is not showing too. I have to actually type enter.
For example, it would be much better If I can edit the text directly in split preview without having to enter main window, by that way I can see two buffer at the same time and my eyes don't need to jump from right preview to main window.
Describe the solution you'd like
Actually open the buffer and set cursor
Describe alternatives you've considered
Hmm
Additional context
No response
The text was updated successfully, but these errors were encountered: