Skip to content

Ghostty automatic theme stops working after opening Neovim with bg.nvim #21

Description

@CX330Blake

Description

I'm using Ghostty's automatic theme feature, so the terminal background/theme changes automatically between day and night.

After installing and using bg.nvim, any Ghostty tab where I have opened Neovim seems to stop following Ghostty's automatic theme changes. In other words, once a tab has launched Neovim with this plugin enabled, that tab's automatic theme no longer updates when Ghostty switches between day/night themes.

Expected behavior

Ghostty tabs should continue to follow Ghostty's automatic theme changes after opening and closing Neovim.

Actual behavior

The Ghostty tab where Neovim was opened stops updating its theme/background automatically.

Steps to reproduce

  1. Enable Ghostty automatic theme switching.
  2. Install and enable bg.nvim in Neovim.
  3. Open Neovim inside a Ghostty tab.
  4. Close Neovim or wait for Ghostty's automatic theme to switch.
  5. Observe that the tab no longer follows the automatic theme change.

Notes

This may be related to the plugin setting terminal background/color escape sequences that are not restored when Neovim exits, causing Ghostty to keep a fixed background for that tab.

I can provide more environment details or test a patch if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions