Skip to content
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

Preview window is not closing #7

Closed
Tainted-Fool opened this issue Mar 24, 2024 · 4 comments
Closed

Preview window is not closing #7

Tainted-Fool opened this issue Mar 24, 2024 · 4 comments

Comments

@Tainted-Fool
Copy link

The preview window is not closing on cursor move, changing mode, or buffer leaving.

Pressing zc and h
image
image

if I press k to move up the preview window stays
image

I also notice syntax highlighting disappears when i press zc and h again
image

Short gif showing issue
WindowsTerminal_dacWqppeRZ

@MOB-34
Copy link

MOB-34 commented May 17, 2024

got the same issue
do u have any solution?

@Tainted-Fool
Copy link
Author

got the same issue do u have any solution?

Nope, ended up disabling the plugin. It's definitely a nice feature to have

@cosmicbuffalo
Copy link

hey not 100% sure if this will fix the issue you're seeing but I was having some similar problems with syntax highlighting breaking after using the fold preview too. took a look into the implementation and #8 seems to have fixed my issue, maybe y'all can give it a try too.

@Tainted-Fool
Copy link
Author

@cosmicbuffalo This fixed my issue 😁

In case anyone is experiencing this problem, here's how to fix it. Nvim version BTW
image

Open ~/.local/share/nvim/lazy/fold-preview.nvim/lua/fold-preview.lua and comment out line 198 and 203
Run nvim and voila
WindowsTerminal_XHWvWvIwWd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants