diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua index 7e133d8..a5dbcbd 100644 --- a/lua/plugins/lualine.lua +++ b/lua/plugins/lualine.lua @@ -1,89 +1,126 @@ return { 'nvim-lualine/lualine.nvim', dependencies = { 'kyazdani42/nvim-web-devicons' }, - config = { - options = { - theme = 'material', - disabled_filetypes = { - statusline = {}, - winbar = { 'dap-repl', 'dapui_console' }, + 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 = { + -- theme = custom_gruvbox, + theme = 'gruvbox_dark', + disabled_filetypes = { + statusline = {}, + winbar = { 'dap-repl', 'dapui_console' }, + }, }, - }, - extensions = { 'aerial' }, - sections = { - lualine_b = { - 'branch', - 'diff', - { - 'diagnostics', - sources = { 'nvim_diagnostic', 'nvim_lsp' } + globalstatus = true, + extensions = { 'aerial' }, + sections = { + lualine_b = { + 'branch', + 'diff', + { + 'diagnostics', + 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 = { - 'hostname', - 'getcwd', - { 'filename', path = 1, file_status = true } - }, - lualine_y = { - 'searchcount', - 'progress' - }, - }, - inactive_sections = { - lualine_c = { 'getcwd', { 'filename', path = 1, file_status = true } } - }, - globalstatus = true, - winbar = { - lualine_a = {}, - lualine_b = {}, - lualine_c = { - { - 'filename', - path = 0, - file_status = true, - separator = { left = '', right = '' }, - -- color = { fg = '#ffaa88', bg = 'grey', gui = 'italic,bold' } - color = { bg = '#aa0000', gui = 'bold' } + winbar = { + lualine_a = { + { + 'filename', + path = 0, + file_status = true, + 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 = { } }, - lualine_x = { 'aerial' }, - lualine_y = {}, - lualine_z = {} - }, - inactive_winbar = { - lualine_a = {}, - lualine_b = {}, - lualine_c = { - { - 'filename', - path = 0, - file_status = true, - separator = { left = '', right = '' }, - -- color = { fg = '#ffaa88', bg = 'grey', gui = 'italic,bold' } - -- color = { fg = '#ff1111'} - } + 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 = '#ff1111'} + } + }, + lualine_b = { + { + 'filesize', + color = { bg = '#282828' } + } + }, + lualine_c = { 'aerial' }, + lualine_x = {}, + lualine_y = {}, + lualine_z = {} }, - lualine_x = { 'aerial' }, - lualine_y = {}, - lualine_z = {} - }, - tabline = { - lualine_a = {}, - lualine_b = {}, - lualine_c = { - { - 'tabs', - mode = 2, - 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. - }, - } + tabline = { + lualine_a = {}, + lualine_b = {}, + lualine_c = { + { + 'tabs', + mode = 2, + 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 = {}, - lualine_z = {} - }, - } + } + end }