From 84b554f3bffe2c894f7aeb4c37d665124765dafa Mon Sep 17 00:00:00 2001 From: hoob3rt Date: Wed, 6 Jan 2021 14:52:05 +0100 Subject: [PATCH] added select mode --- lua/lualine/components/mode.lua | 1 + lua/lualine/highlight.lua | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lua/lualine/components/mode.lua b/lua/lualine/components/mode.lua index f225952..6d0d854 100644 --- a/lua/lualine/components/mode.lua +++ b/lua/lualine/components/mode.lua @@ -11,6 +11,7 @@ local function mode() ['Rv'] = 'V-REPLACE', ['c'] = 'COMMAND', ['t'] = 'TERMINAL', + ['s'] = 'SELECT', } return mode_map[vim.fn.mode()] end diff --git a/lua/lualine/highlight.lua b/lua/lualine/highlight.lua index 8c31760..532663f 100644 --- a/lua/lualine/highlight.lua +++ b/lua/lualine/highlight.lua @@ -48,6 +48,8 @@ function M.format_highlight(is_focused, highlight_group) highlight_group = highlight_group .. '_visual' elseif mode == 'V-REPLACE' then highlight_group = highlight_group .. '_replace' + elseif mode == 'SELECT' then + highlight_group = highlight_group .. '_terminal' else highlight_group = highlight_group .. '_' .. mode:lower() end