vim: small tweak to status line
This commit is contained in:
parent
0dd6508519
commit
d990886087
1 changed files with 21 additions and 21 deletions
|
@ -1,25 +1,25 @@
|
||||||
local MODE_MAP = {
|
local MODE_MAP = {
|
||||||
['n'] = 'Normal ',
|
['n'] = ' Normal',
|
||||||
['no'] = 'O-Pend ',
|
['no'] = ' O-Pend',
|
||||||
['nov'] = 'O-Pend ',
|
['nov'] = ' O-Pend',
|
||||||
['noV'] = 'O-Pend ',
|
['noV'] = ' O-Pend',
|
||||||
['no'] = 'O-Pend ',
|
['no'] = ' O-Pend',
|
||||||
['niI'] = 'Normal ',
|
['niI'] = ' Normal',
|
||||||
['niR'] = 'Normal ',
|
['niR'] = ' Normal',
|
||||||
['niV'] = 'Normal ',
|
['niV'] = ' Normal',
|
||||||
['nt'] = 'Normal ',
|
['nt'] = ' Normal',
|
||||||
['v'] = 'Visual ',
|
['v'] = ' Visual',
|
||||||
['vs'] = 'Visual ',
|
['vs'] = ' Visual',
|
||||||
['V'] = 'V-Line ',
|
['V'] = ' V-Line',
|
||||||
['Vs'] = 'V-Line ',
|
['Vs'] = ' V-Line',
|
||||||
[''] = 'V-Block',
|
[''] = 'V-Block',
|
||||||
['s'] = 'V-Block',
|
['s'] = 'V-Block',
|
||||||
['s'] = 'Select ',
|
['s'] = 'Select ',
|
||||||
['S'] = 'S-Line ',
|
['S'] = 'S-Line ',
|
||||||
[''] = 'S-Block',
|
[''] = 'S-Block',
|
||||||
['i'] = 'Insert ',
|
['i'] = ' Insert',
|
||||||
['ic'] = 'Insert ',
|
['ic'] = ' Insert',
|
||||||
['ix'] = 'Insert ',
|
['ix'] = ' Insert',
|
||||||
['R'] = 'Replace',
|
['R'] = 'Replace',
|
||||||
['Rc'] = 'Replace',
|
['Rc'] = 'Replace',
|
||||||
['Rx'] = 'Replace',
|
['Rx'] = 'Replace',
|
||||||
|
@ -131,21 +131,21 @@ local inactive_sections = {
|
||||||
lualine_a = {},
|
lualine_a = {},
|
||||||
lualine_b = { parts.visual_multi },
|
lualine_b = { parts.visual_multi },
|
||||||
lualine_c = { parts.branch, parts.diff, parts.split, parts.path },
|
lualine_c = { parts.branch, parts.diff, parts.split, parts.path },
|
||||||
lualine_x = { 'diagnostics', parts.filetype, parts.fileformat, parts.progress },
|
lualine_x = { 'diagnostics', parts.filetype },
|
||||||
lualine_y = { parts.location },
|
lualine_y = { parts.fileformat, parts.progress },
|
||||||
lualine_z = {},
|
lualine_z = { parts.location },
|
||||||
}
|
}
|
||||||
|
|
||||||
require('lualine').setup {
|
require('lualine').setup {
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = true,
|
icons_enabled = true,
|
||||||
component_separators = { left = '', right = '' },
|
component_separators = { left = '', right = '' },
|
||||||
section_separators = { left = '', right = '' },
|
section_separators = { left = '', right = '' },
|
||||||
theme = 'solarized',
|
theme = 'solarized',
|
||||||
},
|
},
|
||||||
|
|
||||||
sections = vim.tbl_extend('force', inactive_sections, {
|
sections = vim.tbl_extend('force', inactive_sections, {
|
||||||
lualine_a = { parts.mode, parts.paste },
|
lualine_a = { parts.paste, parts.mode },
|
||||||
}),
|
}),
|
||||||
|
|
||||||
inactive_sections = inactive_sections,
|
inactive_sections = inactive_sections,
|
||||||
|
|
Loading…
Add table
Reference in a new issue