1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim: fix lualine background

This commit is contained in:
Henrik Hautakoski 2025-03-30 10:13:20 +02:00
parent e3e733f528
commit 300d300664
2 changed files with 38 additions and 38 deletions

View file

@ -87,8 +87,12 @@ local options = {
UfoFoldedEllipsis = { link = "Comment" }, UfoFoldedEllipsis = { link = "Comment" },
-- Statusline -- Statusline
StatusLine = { fg = colors.text, bg = colors.crust },
StatusLineNormal = { link = "StatusLine" }, -- Something resets StatusLine highlight background, so use another one for now :)
-- StatusLine = { fg = colors.text, bg = colors.crust },
StatusLineLualine = { fg = colors.text, bg = colors.crust },
StatusLineNormal = { link = "StatusLineLualine" },
StatusLineSeparator = { fg = colors.rosewater, bg = colors.crust }, StatusLineSeparator = { fg = colors.rosewater, bg = colors.crust },
StatusLineInsert = { fg = colors.base, bg = colors.blue }, StatusLineInsert = { fg = colors.base, bg = colors.blue },
StatusLineVisual = { fg = colors.base, bg = colors.mauve }, StatusLineVisual = { fg = colors.base, bg = colors.mauve },

View file

@ -41,38 +41,34 @@ return {
disabled_filetypes = { disabled_filetypes = {
statusline = { statusline = {
"dashboard", "dashboard",
"alpha", "alpha",
}, },
winbar = { winbar = {
"neo-tree", "neo-tree",
"NvimTree", "NvimTree",
"alpha" "alpha"
} }
}, },
theme = { theme = {
normal = { normal = {
a = "StatusLineNormal", a = "StatusLineNormal",
b = "StatusLine", b = "StatusLineLualine",
c = "StatusLine", c = "StatusLineLualine",
x = "StatusLine", x = "StatusLineLualine",
y = "StatusLine", y = "StatusLineLualine",
z = "StatusLine", z = "StatusLineLualine",
}, },
command = { command = {
a = "StatusLineCommand", a = "StatusLineCommand",
z = "StatusLine",
}, },
insert = { insert = {
a = "StatusLineInsert", a = "StatusLineInsert",
z = "StatusLine",
}, },
visual = { visual = {
a = "StatusLineVisual", a = "StatusLineVisual",
z = "StatusLine",
}, },
replace = { replace = {
a = "StatusLineReplace", a = "StatusLineReplace",
z = "StatusLine",
}, },
}, },
}, },
@ -115,12 +111,12 @@ return {
linter, linter,
}, },
lualine_c = {}, lualine_c = {},
lualine_x = { lualine_x = {
{ {
"filetype", "filetype",
cond = is_not_popup cond = is_not_popup
}, },
{ {
"fileformat", "fileformat",
symbols = { symbols = {
unix = "NL", unix = "NL",
@ -129,29 +125,16 @@ return {
} }
}, },
indent_settings, indent_settings,
}, },
lualine_y = { lualine_y = {
"location", "location",
"progress", "progress",
}, },
lualine_z = {}, lualine_z = {},
}, },
winbar = { winbar = {
lualine_c = { lualine_c = {
{ "filetype", icon_only = true }, { "filetype", icon_only = true },
{
"filename",
cond = is_not_popup,
path = 1,
symbols = vim.tbl_deep_extend("force", icons.file_status, {
unnamed = "",
})
},
},
},
inactive_winbar = {
lualine_c = {
{ "filetype", icon_only = true },
{ {
"filename", "filename",
cond = is_not_popup, cond = is_not_popup,
@ -162,6 +145,19 @@ return {
}, },
}, },
}, },
inactive_winbar = {
lualine_c = {
{ "filetype", icon_only = true },
{
"filename",
cond = is_not_popup,
path = 1,
symbols = vim.tbl_deep_extend("force", icons.file_status, {
unnamed = "",
})
},
},
},
extensions = { extensions = {
"lazy", "lazy",
"neo-tree", "neo-tree",