MunifTanjim / nui.nvim

UI Component Library for Neovim.
MIT License
1.62k stars 57 forks source link

[bug] incorrect rendering of popup #354

Closed embe221ed closed 5 months ago

embe221ed commented 7 months ago

hello!

I've recently switched to the OneDark neovim theme and the command line popup started to render incorrectly. after playing with it for a while, I've been able to "resolve" the issue by removing that line:

vim.api.nvim_command("redraw")

in Border:_open_window function. however, I don't think this is the correct fix.

how it looks without the mentioned change:

Screenshot 2024-03-20 at 09 39 24

how it looks after removing the redraw line:

Screenshot 2024-03-20 at 09 39 40
MunifTanjim commented 7 months ago

You need to give me some codes to repro it.

embe221ed commented 7 months ago

ah, sorry for that. I'll try to prepare a minimal setup that reproduces the issue

embe221ed commented 7 months ago

this is my full config: https://github.com/embe221ed/scripts/tree/main/configs/nvim

MunifTanjim commented 5 months ago

I'm sorry, but I'll need minimal repro code. I can't go through your whole config to find out what's wrong.

I've recently switched to the OneDark neovim theme and the command line popup started to render incorrectly.

Since it was working for you before, chances are it's not a bug with nui.nvim. Try switching back to your old config/theme and see if the issue persist.

embe221ed commented 5 months ago

hello, I've tried to reproduce the issue with a minimal setup but failed to do so. I think we can close this issue due to that reason.