try to fix lauline theme

This commit is contained in:
Oliver Hartmann 2023-03-19 21:29:04 +01:00
parent 97c469b1ef
commit 8f6caa96e5

View File

@ -1,14 +1,27 @@
return { return {
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
dependencies = { 'kyazdani42/nvim-web-devicons' }, dependencies = { 'kyazdani42/nvim-web-devicons' },
config = { config = function()
local custom_gruvbox = require 'lualine.themes.gruvbox_dark'
-- Change the background of lualine_c section for normal mode
custom_gruvbox.normal.a.bg = '#282828'
custom_gruvbox.normal.b.bg = '#282828'
custom_gruvbox.normal.c.bg = '#282828'
-- custom_gruvbox.normal.a.fg = '#282828'
-- custom_gruvbox.normal.b.fg = '#282828'
-- custom_gruvbox.normal.c.fg = '#282828'
require('lualine').setup {
options = { options = {
theme = 'material', -- theme = custom_gruvbox,
theme = 'gruvbox_dark',
disabled_filetypes = { disabled_filetypes = {
statusline = {}, statusline = {},
winbar = { 'dap-repl', 'dapui_console' }, winbar = { 'dap-repl', 'dapui_console' },
}, },
}, },
globalstatus = true,
extensions = { 'aerial' }, extensions = { 'aerial' },
sections = { sections = {
lualine_b = { lualine_b = {
@ -30,40 +43,63 @@ return {
}, },
}, },
inactive_sections = { inactive_sections = {
lualine_c = { 'getcwd', { 'filename', path = 1, file_status = true } }
},
globalstatus = true,
winbar = {
lualine_a = {},
lualine_b = {},
lualine_c = { lualine_c = {
'getcwd',
{ {
'filename', 'filename',
path = 0, path = 1,
file_status = true, file_status = true
separator = { left = '', right = '' }, }
-- color = { fg = '#ffaa88', bg = 'grey', gui = 'italic,bold' }
color = { bg = '#aa0000', gui = 'bold' }
} }
}, },
lualine_x = { 'aerial' }, winbar = {
lualine_y = {}, lualine_a = {
lualine_z = {}
},
inactive_winbar = {
lualine_a = {},
lualine_b = {},
lualine_c = {
{ {
'filename', 'filename',
path = 0, path = 0,
file_status = true, file_status = true,
separator = { left = '', right = '' }, separator = { left = '', right = '' },
-- color = { fg = '#ffaa88', gui = 'bold' }
color = { fg = '#ffaa88', bg = '#282828', gui = 'bold' }
}
},
lualine_b = {
{
'filesize',
color = { bg = '#282828' }
}
},
lualine_c = {
{
'aerial',
color = { fg = '#ebdbb2', bg = '#282828', gui = 'bold' }
}
},
lualine_x = {},
lualine_y = {},
lualine_z = {
}
},
inactive_winbar = {
lualine_a = {
{
'filename',
path = 0,
file_status = true,
separator = { left = '', right = '' },
color = { fg = '#ffaa88', bg = '#282828', gui = 'bold' }
-- color = { fg = '#ffaa88', bg = 'grey', gui = 'italic,bold' } -- color = { fg = '#ffaa88', bg = 'grey', gui = 'italic,bold' }
-- color = { fg = '#ff1111'} -- color = { fg = '#ff1111'}
} }
}, },
lualine_x = { 'aerial' }, lualine_b = {
{
'filesize',
color = { bg = '#282828' }
}
},
lualine_c = { 'aerial' },
lualine_x = {},
lualine_y = {}, lualine_y = {},
lualine_z = {} lualine_z = {}
}, },
@ -86,4 +122,5 @@ return {
lualine_z = {} lualine_z = {}
}, },
} }
end
} }