-
Hi folks, I use this color config together with the kanagawa theme. It's working great, but it breaks when I toggle the background setting. Whats extra weird is that it depends on modes:
This is the relevant config, it's modeled after the cookbook example: local colors = require("kanagawa.colors").setup()
require("heirline").load_colors(colors)
require("heirline").setup({
tabline = {},
statusline = {
static = {
mode_colors_map = {
n = require("lualine.themes.kanagawa").normal,
i = require("lualine.themes.kanagawa").insert,
v = require("lualine.themes.kanagawa").visual,
["\22"] = require("lualine.themes.kanagawa").visual,
c = require("lualine.themes.kanagawa").command,
s = require("lualine.themes.kanagawa").visual,
r = require("lualine.themes.kanagawa").replace,
t = require("lualine.themes.kanagawa").insert,
},
mode_color = function(self)
if conditions.is_active() then
return self.mode_colors_map[self.mode:lower()]
else
return {
a = "StatusLineNC",
b = "StatusLineNC",
c = "StatusLineNC",
}
end
end,
},
... I'm then using the colors across all segments like this: hl = function(self)
return self:mode_color().b
end, Question really is: is any of the stuff I'm doing wrong and how can I do this better? Anyone else with that issue? |
Beta Was this translation helpful? Give feedback.
Answered by
rebelot
Oct 31, 2023
Replies: 1 comment 2 replies
-
You should read the Theming section of the cookbook! |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
debugloop
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should read the Theming section of the cookbook!