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