rose-pine / neovim

Soho vibes for Neovim
MIT License
2.25k stars 144 forks source link

bug: integrated terminal status line wrong color #266

Closed morhaham2 closed 5 months ago

morhaham2 commented 5 months ago

Neovim version (nvim -v)

0.9.5

Terminal / multiplexer

wezterm

Describe the bug

In Neovim, the integrated terminal status line is shown with the wrong color. It is not related to tmux because i've tried it outside a tmux session as well. I've also tried with iTerm2 and the same as in Wezterm.

image

Repro

  {
    "rose-pine/neovim",
    name = "rose-pine",
    priority = 1000,
    lazy = false,
    config = function()
      vim.cmd("colorscheme rose-pine")
    end,
  },
mvllow commented 5 months ago

This is the expected colour for the terminal statusline though..

morhaham2 commented 5 months ago

This is the expected colour for the terminal statusline though..

Wow really.. very weird color .How can I change that? I would like it to be the same as the default purple color of any other buffer.

mvllow commented 5 months ago

The entire terminal theming can be disabled via options.enable.terminal = false

https://github.com/rose-pine/neovim/blob/17b466e79479758b332a3cac12544a3ad2be6241/lua/rose-pine.lua#L885-L915

You should be able to override the two groups, though:

highlight_groups = {
  StatusLineTerm = { fg = "subtle", bg = "surface" },
  StatusLineTermNC = { fg = "muted", bg = "surface", blend = 60 }
}

If the above doesn't work let me know!

morhaham2 commented 5 months ago

The entire terminal theming can be disabled via options.enable.terminal = false

https://github.com/rose-pine/neovim/blob/17b466e79479758b332a3cac12544a3ad2be6241/lua/rose-pine.lua#L885-L915

You should be able to override the two groups, though:

highlight_groups = {
  StatusLineTerm = { fg = "subtle", bg = "surface" },
  StatusLineTermNC = { fg = "muted", bg = "surface", blend = 60 }
}

If the above doesn't work let me know!

Thank you I'll check that soon. Btw can you tell if you encountered color anomaly in text like this:

image
mvllow commented 5 months ago

That is usually an issue with treesitter

morhaham commented 5 months ago
 StatusLineTerm = { fg = "subtle", bg = "surface" },
  StatusLineTermNC = { fg = "muted", bg = "surface", blend = 60 }

I used the this solution it works, thank you.