tokyonight.nvim icon indicating copy to clipboard operation
tokyonight.nvim copied to clipboard

Change background color of left-hand signs column (gutter)?

Open miguno opened this issue 2 years ago • 0 comments

Thanks for the wonderful theme!

I want a different background color for the left-hand signs column (e.g., where gitsign symbols are displayed), but I failed to find an appropriate setting at https://github.com/folke/tokyonight.nvim/blob/main/lua/tokyonight/colors.lua.

My best guess was fg_gutter, but this was obviously the wrong choice, because it changes parts of the the LuaLine background color: Bildschirmfoto 2022-04-04 um 14 10 17

Is there a way to configure a different background color for the sign column?

miguno avatar Apr 04 '22 12:04 miguno

Hi! I just added a bunch of documentation on how to override colors & highlight groups.

The highligh group you prbably want to change is SignColumn

folke avatar Sep 12 '22 07:09 folke

Thanks, this worked!

Here are more detailed instructions for other folks that come across this. The example below sets the background color of the signs column (gutter) to bright red.

require("tokyonight").setup({
  on_highlights = function(hl, c)
    hl.SignColumn = {
      bg = "#ff0000",
    }
  end,
})

miguno avatar Sep 12 '22 17:09 miguno