vim: small tweak to status line

This commit is contained in:
Fernando Schauenburg 2022-10-14 15:54:19 +02:00
parent 0dd6508519
commit d990886087

View file

@ -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,