From 77c7c1a8b9bf1382811330aab347474aade64877 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sat, 12 Aug 2023 00:07:41 +0200 Subject: [PATCH] vim/lualine: use icons for modes --- config/nvim/lua/fschauen/plugins/lualine.lua | 34 +++++++++----------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/config/nvim/lua/fschauen/plugins/lualine.lua b/config/nvim/lua/fschauen/plugins/lualine.lua index 0b87b87..1720c1e 100644 --- a/config/nvim/lua/fschauen/plugins/lualine.lua +++ b/config/nvim/lua/fschauen/plugins/lualine.lua @@ -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)