Skip to content

NeoVim 0.12.2 - theme resets to 'default' after returning from background #386

@dmchmk

Description

@dmchmk

Hi! It's a great theme! But unfortunately, after recent update 0.12.2 of NeoVim, I've faced a bug:

When I initially start NeoVim, everything's fine, I see correct theme

Image

But if I push NeoVim to background with Ctrl-Z, after returning back it will reset to 'default':

Image

And the same behavior repeats even if I resize my terminal window with NeoVim opened.

Minimal config to reproduce:

vim.pack.add({
  "https://github.com/projekt0n/github-nvim-theme",
})

vim.o.background = "light"

vim.cmd.colorscheme("github_light_colorblind")

Maybe, it can be somehow connected to this commit, but I'm not sure, modern themes are very complex and hard to debug. I even filed the same issue to the NeoVim repo, but looks like it doesn't reproduce on other custom themes I've tested

OS: NixOS
Terminal Emulator: Alacritty

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions