nvim: add more mode shorthands in lualine
This commit is contained in:
@@ -2,14 +2,42 @@
|
|||||||
require 'nvim-navic'.setup({})
|
require 'nvim-navic'.setup({})
|
||||||
|
|
||||||
-- used as mode-module
|
-- used as mode-module
|
||||||
|
-- https://github.com/nvim-lualine/lualine.nvim/issues/614
|
||||||
local mode_map = {
|
local mode_map = {
|
||||||
['n'] = 'N',
|
['n'] = 'N',
|
||||||
['v'] = 'V',
|
['no'] = 'O-P',
|
||||||
['i'] = 'I',
|
['nov'] = 'O-P',
|
||||||
['V'] = 'VL',
|
['noV'] = 'O-P',
|
||||||
[''] = "VB",
|
['no'] = 'O-P',
|
||||||
['s'] = "VB",
|
['niI'] = 'N',
|
||||||
['c'] = "C",
|
['niR'] = 'N',
|
||||||
|
['niV'] = 'N',
|
||||||
|
['nt'] = 'N',
|
||||||
|
['v'] = 'V',
|
||||||
|
['vs'] = 'V',
|
||||||
|
['V'] = 'VL',
|
||||||
|
['Vs'] = 'VL',
|
||||||
|
[''] = 'VB',
|
||||||
|
['s'] = 'VB',
|
||||||
|
['s'] = 'S',
|
||||||
|
['S'] = 'SL',
|
||||||
|
['i'] = 'I',
|
||||||
|
['ic'] = 'I',
|
||||||
|
['ix'] = 'I',
|
||||||
|
['R'] = 'R',
|
||||||
|
['Rc'] = 'R',
|
||||||
|
['Rx'] = 'R',
|
||||||
|
['Rv'] = 'VR',
|
||||||
|
['Rvc'] = 'VR',
|
||||||
|
['Rvx'] = 'VR',
|
||||||
|
['c'] = 'C',
|
||||||
|
['cv'] = 'EX',
|
||||||
|
['ce'] = 'EX',
|
||||||
|
['r'] = 'R',
|
||||||
|
['rm'] = 'MORE',
|
||||||
|
['r?'] = 'CONFIRM',
|
||||||
|
['!'] = 'SH',
|
||||||
|
['t'] = 'T',
|
||||||
}
|
}
|
||||||
|
|
||||||
-- actually load bar
|
-- actually load bar
|
||||||
@@ -50,7 +78,6 @@ require('lualine').setup({
|
|||||||
'filename',
|
'filename',
|
||||||
path = 1,
|
path = 1,
|
||||||
},
|
},
|
||||||
-- require('nvim-navic').get_location
|
|
||||||
},
|
},
|
||||||
lualine_x = {
|
lualine_x = {
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user