From 8a368f45dec16b0c1b12391cb0460a76922a5864 Mon Sep 17 00:00:00 2001 From: Squibid Date: Sun, 26 Feb 2023 16:20:26 -0500 Subject: change lualine --- lua/core/overrides/lualine.lua | 39 +++++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 14 deletions(-) (limited to 'lua/core/overrides') diff --git a/lua/core/overrides/lualine.lua b/lua/core/overrides/lualine.lua index 19162eb..f020e0c 100644 --- a/lua/core/overrides/lualine.lua +++ b/lua/core/overrides/lualine.lua @@ -2,7 +2,7 @@ local custom = require'lualine.themes.auto' custom.normal = { a = { fg = colors.black, bg = colors.blue, gui = 'bold' }, - b = { fg = colors.black, bg = colors.blue, gui = 'bold' }, + b = { fg = colors.black, bg = colors.grey, gui = 'bold' }, c = { fg = colors.white, bg = colors.grey }, x = {}, y = { fg = colors.blue, bg = colors.black2 }, @@ -10,7 +10,7 @@ custom.normal = { } custom.insert = { a = { fg = colors.black, bg = colors.green, gui = 'bold' }, - b = { fg = colors.black, bg = colors.green, gui = 'bold' }, + b = { fg = colors.black, bg = colors.grey, gui = 'bold' }, c = { fg = colors.white, bg = colors.grey }, x = {}, y = { fg = colors.green, bg = colors.black2 }, @@ -18,7 +18,7 @@ custom.insert = { } custom.replace = { a = { fg = colors.black, bg = colors.orange, gui = 'bold' }, - b = { fg = colors.black, bg = colors.orange, gui = 'bold' }, + b = { fg = colors.black, bg = colors.grey, gui = 'bold' }, c = { fg = colors.white, bg = colors.grey }, x = {}, y = { fg = colors.orange, bg = colors.black2 }, @@ -26,7 +26,7 @@ custom.replace = { } custom.visual = { a = { fg = colors.black, bg = colors.purple, gui = 'bold' }, - b = { fg = colors.black, bg = colors.purple, gui = 'bold' }, + b = { fg = colors.black, bg = colors.grey, gui = 'bold' }, c = { fg = colors.white, bg = colors.grey }, x = {}, y = { fg = colors.purple, bg = colors.black2 }, @@ -34,7 +34,7 @@ custom.visual = { } custom.command = { a = { fg = colors.black, bg = colors.red, gui = 'bold' }, - b = { fg = colors.black, bg = colors.red, gui = 'bold' }, + b = { fg = colors.black, bg = colors.grey, gui = 'bold' }, c = { fg = colors.white, bg = colors.grey }, x = {}, y = { fg = colors.red, bg = colors.black2 }, @@ -42,19 +42,19 @@ custom.command = { } custom.terminal = { a = { fg = colors.black, bg = colors.yellow, gui = 'bold' }, - b = { fg = colors.black, bg = colors.yellow, gui = 'bold' }, + b = { fg = colors.black, bg = colors.grey, gui = 'bold' }, c = { fg = colors.white, bg = colors.grey }, x = {}, y = { fg = colors.yellow, bg = colors.black2 }, z = { fg = colors.black2, bg = colors.yellow, gui = 'bold' }, } custom.inactive = { - a = { bg = colors.grey }, - b = { bg = colors.grey }, - c = { bg = colors.grey }, - x = { bg = colors.grey }, - y = { bg = colors.grey }, - z = { bg = colors.grey }, + a = { bg = colors.black2 }, + b = { bg = colors.black2 }, + c = { bg = colors.black2 }, + x = { bg = colors.black2 }, + y = { bg = colors.black2 }, + z = { bg = colors.black2 }, } local function diff_source() @@ -112,12 +112,23 @@ require('lualine').setup { } } }, - lualine_b = {}, - lualine_c = { + lualine_b = { { 'diff', source = diff_source, }, + { 'diagnostics', + sources = {'nvim_diagnostic', 'nvim_lsp'}, + sections = {'error', 'warn', 'info', 'hint'}, + diagnostics_color = { + error = 'DiagnosticError', + warn = 'DiagnosticWarn', + info = 'DiagnosticInfo', + hint = 'DiagnosticHint', + }, + symbols = {error = '[x]', warn = '[!]', info = '[i]', hint = '[?]'}, + } }, + lualine_c = {}, lualine_x = { { 'fileformat', color = { gui = 'bold' } -- cgit v1.2.1