Use buffer for preview window instead of the file.
NikoKS opened this issue · comments
Is your feature request related to a problem? Please describe.
Currently, when opening coc-reference, the preview window tries to open the file instead of the buffer. Is there an option to make the preview to show the buffer instead? This causes problems like:
unable to open reference for new file
and misaligned preview on an unsaved file
I have not tried on other functionality other than reference, but I imagine functions like diagnostics would also benefit from this.
Describe the solution you'd like
Is it possible to open the buffer as a preview instead by default or as an option? That should fix this problem
Thank you.
Thanks for reporting this issue.
I don't think it is doable as the preview script opens a file outside vim and does not have the view of vim's current buffers.
If you find a way to circumvent that, please reopen this issue.
Cheers 🥂