vim/lualine: use icons for modes

This commit is contained in:
Fernando Schauenburg 2023-08-12 00:07:41 +02:00
parent ac8b791339
commit 77c7c1a8b9

View file

@ -1,23 +1,21 @@
local config = function()
local MODES = {
['n'] = 'Normal ', -- Normal
['no'] = 'O-Pend ', -- Operator-pending
['ni'] = 'Normal ', -- Normal via i_CTRL-O
['v'] = 'Visual ', -- Visual by character
['V'] = 'V-Line ', -- Visual by line
[''] = 'V-Block', -- Visual blockwise
['s'] = 'Select ', -- Select by character
['S'] = 'S-Line ', -- Select by line
[''] = 'S-Block', -- Select blockwise
['i'] = 'Insert ', -- Insert
['R'] = 'Replace', -- Replace
['Rv'] = 'V-Repl ', -- Virtual Replace
['c'] = 'Command', -- Command-line
['cv'] = ' Ex ', -- Ex mode
['rm'] = ' More ', -- -- MORE --
['r?'] = 'Confirm', -- :confirm
['!'] = ' Shell ', -- External command executing
['t'] = ' Term ', -- Terminal
['n'] = '', -- 'Normal ', -- Normal
['no'] = '', -- 'O-Pend ', -- Operator-pending
['ni'] = '', -- 'Normal ', -- Normal via i_CTRL-O
['v'] = ' 󰒉 ', -- 'Visual ', -- Visual by character
[''] = ' 󰩭 ', -- 'V-Block', -- Visual blockwise
['s'] = ' 󰒉 ', -- 'Select ', -- Select by character
[''] = ' 󰩭 ', -- 'S-Block', -- Select blockwise
['i'] = '', -- 'Insert ', -- Insert
['r'] = ' 󰄾 ', -- 'Replace', -- Replace
['rv'] = ' 󰶻 ', -- 'V-Repl ', -- Virtual Replace
['c'] = '', -- 'Command', -- Command-line
['cv'] = '', -- ' Ex ', -- Ex mode
['rm'] = '', -- ' More ', -- -- MORE --
['r?'] = ' 󰭚 ', -- 'Confirm', -- :confirm
['!'] = '', -- ' Shell ', -- External command executing
['t'] = '', -- ' Term ', -- Terminal
}
local extend = function(component, overrides)