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,89 +1,126 @@
return { return {
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
dependencies = { 'kyazdani42/nvim-web-devicons' }, dependencies = { 'kyazdani42/nvim-web-devicons' },
config = { config = function()
options = { local custom_gruvbox = require 'lualine.themes.gruvbox_dark'
theme = 'material',
disabled_filetypes = { -- Change the background of lualine_c section for normal mode
statusline = {}, custom_gruvbox.normal.a.bg = '#282828'
winbar = { 'dap-repl', 'dapui_console' }, 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 = {
-- theme = custom_gruvbox,
theme = 'gruvbox_dark',
disabled_filetypes = {
statusline = {},
winbar = { 'dap-repl', 'dapui_console' },
},
}, },
}, globalstatus = true,
extensions = { 'aerial' }, extensions = { 'aerial' },
sections = { sections = {
lualine_b = { lualine_b = {
'branch', 'branch',
'diff', 'diff',
{ {
'diagnostics', 'diagnostics',
sources = { 'nvim_diagnostic', 'nvim_lsp' } sources = { 'nvim_diagnostic', 'nvim_lsp' }
}
},
lualine_c = {
'hostname',
'getcwd',
{ 'filename', path = 1, file_status = true }
},
lualine_y = {
'searchcount',
'progress'
},
},
inactive_sections = {
lualine_c = {
'getcwd',
{
'filename',
path = 1,
file_status = true
}
} }
}, },
lualine_c = { winbar = {
'hostname', lualine_a = {
'getcwd', {
{ 'filename', path = 1, file_status = true } 'filename',
}, path = 0,
lualine_y = { file_status = true,
'searchcount', separator = { left = '', right = '' },
'progress' -- color = { fg = '#ffaa88', gui = 'bold' }
}, color = { fg = '#ffaa88', bg = '#282828', gui = 'bold' }
}, }
inactive_sections = { },
lualine_c = { 'getcwd', { 'filename', path = 1, file_status = true } } lualine_b = {
}, {
globalstatus = true, 'filesize',
winbar = { color = { bg = '#282828' }
lualine_a = {}, }
lualine_b = {}, },
lualine_c = { lualine_c = {
{ {
'filename', 'aerial',
path = 0, color = { fg = '#ebdbb2', bg = '#282828', gui = 'bold' }
file_status = true, }
separator = { left = '', right = '' }, },
-- color = { fg = '#ffaa88', bg = 'grey', gui = 'italic,bold' } lualine_x = {},
color = { bg = '#aa0000', gui = 'bold' } lualine_y = {},
lualine_z = {
} }
}, },
lualine_x = { 'aerial' }, inactive_winbar = {
lualine_y = {}, lualine_a = {
lualine_z = {} {
}, 'filename',
inactive_winbar = { path = 0,
lualine_a = {}, file_status = true,
lualine_b = {}, separator = { left = '', right = '' },
lualine_c = { color = { fg = '#ffaa88', bg = '#282828', gui = 'bold' }
{ -- color = { fg = '#ffaa88', bg = 'grey', gui = 'italic,bold' }
'filename', -- color = { fg = '#ff1111'}
path = 0, }
file_status = true, },
separator = { left = '', right = '' }, lualine_b = {
-- color = { fg = '#ffaa88', bg = 'grey', gui = 'italic,bold' } {
-- color = { fg = '#ff1111'} 'filesize',
} color = { bg = '#282828' }
}
},
lualine_c = { 'aerial' },
lualine_x = {},
lualine_y = {},
lualine_z = {}
}, },
lualine_x = { 'aerial' }, tabline = {
lualine_y = {}, lualine_a = {},
lualine_z = {} lualine_b = {},
}, lualine_c = {
tabline = { {
lualine_a = {}, 'tabs',
lualine_b = {}, mode = 2,
lualine_c = { tabs_color = {
{ -- Same values as the general color option can be used here.
'tabs', active = 'lualine_a_normal', -- Color for active tab.
mode = 2, inactive = 'lualine_a_inactive', -- Color for inactive tab.
tabs_color = { },
-- Same values as the general color option can be used here. }
active = 'lualine_a_normal', -- Color for active tab. },
inactive = 'lualine_a_inactive', -- Color for inactive tab. lualine_x = {},
}, lualine_y = {},
} lualine_z = {}
}, },
lualine_x = {}, }
lualine_y = {}, end
lualine_z = {}
},
}
} }