dracula/vim

Dracula breaks in floating windows in neovim 0.10.0

aricursion opened this issue · 4 comments

What happened

Colorscheme is not applied to floating windows properly.

What I expected to happen

The dracula colorscheme is applied to floating windows

Screenshot

Unintended behavior:
Screenshot_20240603_095513

Intended behavior: (nvim version 0.9.5)

Screenshot_20240603_095642

Machine Info

  • Vim type (vim/gvim/neovim):
    neovim
  • Vim version:
    0.10.0
  • OS:
    Linux zach-arch 6.9.2-arch1-1 # 1 SMP PREEMPT_DYNAMIC Sun, 26 May 2024 01:30:29 +0000 x86_64 GNU/Linux
  • Terminal/Terminal Emulator/VTE:
    Kitty
  • TERM environment variable:
    xterm-kitty

Additional Info

Colorschemes have been a known issue due to some changes in nvim 0.10.0 the "standard" fix for this is to :set colorscheme vim before loading the custom colorscheme. However, this does not fix the behavior.

I know that something in colorschemes has been changed with 0.10.0, but it would be really helpful to know what changed in 0.10.0 to affect the floating or popup windows.

There are a few bits in the release notes about Floating highlights, but I don't see any that jump out as part of the problem. Indeed, it seems more like syntax highlighting is not being applied correctly in your screenshot.

Would syntax highlighting effect the background color which is also wrong?

Would syntax highlighting effect the background color which is also wrong?

I noticed that, and I don't think so. But the other colors, while not correct, are Dracula colors. So that's confusing. What's needed is more information, essentially: I don't know what we need to do differently, and (since I use Vim, not Neovim), I don't personally have the bandwidth to figure it out.

You might ask the Neovim devs or user community if they know? Or maybe you could look at the commit history to see what touches this area of the code and get some ideas about fixes that we could make?