From bcb41ea23970b6b1efa7db29771f4e93db19d9f5 Mon Sep 17 00:00:00 2001 From: siduck Date: Sat, 21 May 2022 09:02:45 +0530 Subject: [PATCH] misc --- lua/plugins/configs/statusline.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lua/plugins/configs/statusline.lua b/lua/plugins/configs/statusline.lua index 1a48e68..0cb1db7 100644 --- a/lua/plugins/configs/statusline.lua +++ b/lua/plugins/configs/statusline.lua @@ -264,13 +264,15 @@ options.empty_spaceColored = { options.mode_icon = { provider = options.separator_style.vi_mode_icon, - hl = { - fg = get_color("Feline", "bg#"), - bg = get_color(options.mode_colors[vim.fn.mode()][2], "fg#"), - }, + hl = function() + return { + fg = get_color("Feline", "bg#"), + bg = get_color(options.mode_colors[vim.fn.mode()][2], "fg#"), + } + end, } -options.empty_space2 = { +options.mode_name = { provider = function() return " " .. options.mode_colors[vim.fn.mode()][1] .. " " end, @@ -349,7 +351,7 @@ add_table(options.right, options.git_branch) add_table(options.right, options.empty_space) add_table(options.right, options.empty_spaceColored) add_table(options.right, options.mode_icon) -add_table(options.right, options.empty_space2) +add_table(options.right, options.mode_name) add_table(options.right, options.separator_right) add_table(options.right, options.separator_right2) add_table(options.right, options.position_icon)