My lualine can't load third-party themes correctly. #1443
Closed
Jaffrez
started this conversation in
Configuration
Replies: 1 comment
-
The expected result is similar to the image below.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
To preface this: English is not my native language, and most of the content here is translated using Gemini, so it might be a bit verbose. Please bear with me.
I'm running Neovim on Windows 11 and using the Catppuccin theme.

I noticed that Catppuccin has made a theme for lualine, so I tried using that theme.
However, after several adjustments to my lualine configuration, lualine still loaded the theme.
As shown in the image, lualine is still using the default theme.
Then I re-read the documentation for lualine and Catppuccin and tried the following configuration.
This had no effect.

Meanwhile, I imported the Gruvbox theme in this way, and then I found that it worked normally.

I began to suspect whether the theme Catppuccin made for lualine was corrupted, so I obtained the content of the catppuccin-macchiato theme by outputting the table content in Neovim.
:lua vim.api.nvim_buf_set_lines(0, 0, -1, false, vim.split(vim.inspect(require("lualine.themes.catppuccin-macchiato")), '\n')){ command = { a = { bg = "#f5a97f", fg = "#24273a", gui = "bold" }, b = { bg = "#363a4f", fg = "#f5a97f" } }, inactive = { a = { bg = "#1e2030", fg = "#8aadf4" }, b = { bg = "#1e2030", fg = "#494d64", gui = "bold" }, c = { bg = "#1e2030", fg = "#6e738d" } }, insert = { a = { bg = "#a6da95", fg = "#24273a", gui = "bold" }, b = { bg = "#363a4f", fg = "#a6da95" } }, normal = { a = { bg = "#8aadf4", fg = "#1e2030", gui = "bold" }, b = { bg = "#363a4f", fg = "#8aadf4" }, c = { bg = "#1e2030", fg = "#cad3f5" } }, replace = { a = { bg = "#ed8796", fg = "#24273a", gui = "bold" }, b = { bg = "#363a4f", fg = "#ed8796" } }, terminal = { a = { bg = "#a6da95", fg = "#24273a", gui = "bold" }, b = { bg = "#363a4f", fg = "#a6da95" } }, visual = { a = { bg = "#c6a0f6", fg = "#24273a", gui = "bold" }, b = { bg = "#363a4f", fg = "#c6a0f6" } } }Then I used the same method to get the content corresponding to the Gruvbox theme, and I didn't find any particularly big differences between them.
Before asking here, I tried opening an issue in Catppuccin's repository, but I didn't find any effective solutions. That's why I decided to ask here. Thanks all very much for your help.
Beta Was this translation helpful? Give feedback.
All reactions