From d9908860872beaf680fbe2752d9284279e7283b1 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Fri, 14 Oct 2022 15:54:19 +0200 Subject: [PATCH] vim: small tweak to status line --- config/nvim/after/plugin/lualine.lua | 42 ++++++++++++++-------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/config/nvim/after/plugin/lualine.lua b/config/nvim/after/plugin/lualine.lua index 813e1db..62d2162 100644 --- a/config/nvim/after/plugin/lualine.lua +++ b/config/nvim/after/plugin/lualine.lua @@ -1,25 +1,25 @@ local MODE_MAP = { - ['n'] = 'Normal ', - ['no'] = 'O-Pend ', - ['nov'] = 'O-Pend ', - ['noV'] = 'O-Pend ', - ['no'] = 'O-Pend ', - ['niI'] = 'Normal ', - ['niR'] = 'Normal ', - ['niV'] = 'Normal ', - ['nt'] = 'Normal ', - ['v'] = 'Visual ', - ['vs'] = 'Visual ', - ['V'] = 'V-Line ', - ['Vs'] = 'V-Line ', + ['n'] = ' Normal', + ['no'] = ' O-Pend', + ['nov'] = ' O-Pend', + ['noV'] = ' O-Pend', + ['no'] = ' O-Pend', + ['niI'] = ' Normal', + ['niR'] = ' Normal', + ['niV'] = ' Normal', + ['nt'] = ' Normal', + ['v'] = ' Visual', + ['vs'] = ' Visual', + ['V'] = ' V-Line', + ['Vs'] = ' V-Line', [''] = 'V-Block', ['s'] = 'V-Block', ['s'] = 'Select ', ['S'] = 'S-Line ', [''] = 'S-Block', - ['i'] = 'Insert ', - ['ic'] = 'Insert ', - ['ix'] = 'Insert ', + ['i'] = ' Insert', + ['ic'] = ' Insert', + ['ix'] = ' Insert', ['R'] = 'Replace', ['Rc'] = 'Replace', ['Rx'] = 'Replace', @@ -131,21 +131,21 @@ local inactive_sections = { lualine_a = {}, lualine_b = { parts.visual_multi }, lualine_c = { parts.branch, parts.diff, parts.split, parts.path }, - lualine_x = { 'diagnostics', parts.filetype, parts.fileformat, parts.progress }, - lualine_y = { parts.location }, - lualine_z = {}, + lualine_x = { 'diagnostics', parts.filetype }, + lualine_y = { parts.fileformat, parts.progress }, + lualine_z = { parts.location }, } require('lualine').setup { options = { icons_enabled = true, component_separators = { left = '', right = '' }, - section_separators = { left = '', right = '' }, + section_separators = { left = '', right = '' }, theme = 'solarized', }, sections = vim.tbl_extend('force', inactive_sections, { - lualine_a = { parts.mode, parts.paste }, + lualine_a = { parts.paste, parts.mode }, }), inactive_sections = inactive_sections,