From eb9222a29dd0e5649aaf56eb1b3bd6ff18859b1a Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 1 Apr 2022 13:33:54 +0300 Subject: nvim: legible lualine diff colours --- .config/nvim/lua/plugin_settings.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to '.config') diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua index 2b8b2a8..15381bd 100644 --- a/.config/nvim/lua/plugin_settings.lua +++ b/.config/nvim/lua/plugin_settings.lua @@ -62,7 +62,17 @@ require'lualine'.setup { }, sections = { lualine_a = {{'mode', fmt = string.lower}}, - lualine_b = {'branch', 'diff', { + lualine_b = {'branch', + { + 'diff', + diff_color= { + -- Same color values as the general color option can be used here. + added = { fg = 'LightGreen' }, + modified = { fg = 'LightBlue' }, -- Changes the diff's modified color + removed = { fg = 'LightRed' }, -- Changes the diff's removed color you + } + }, + { lualine_spell, cond = conditions.spell_on, }}, -- cgit v1.2.3-70-g09d2