feat: add support for prompt mode

This commit is contained in:
Olivier Roques
2022-03-04 14:31:01 +00:00
parent f406c28b30
commit 0ee248e2c2

View File

@@ -2,18 +2,19 @@ local fmt = string.format
local M = {} local M = {}
M.modes = { M.modes = {
['?'] = {text = '???', state = 'inactive'},
['n'] = {text = 'NORMAL', state = 'normal'},
['i'] = {text = 'INSERT', state = 'insert'},
['R'] = {text = 'REPLACE', state = 'replace'},
['v'] = {text = 'VISUAL', state = 'visual'},
['V'] = {text = 'V-LINE', state = 'visual'},
[''] = {text = 'V-BLOCK', state = 'visual'},
['c'] = {text = 'COMMAND', state = 'command'},
['s'] = {text = 'SELECT', state = 'visual'},
['S'] = {text = 'S-LINE', state = 'visual'},
[''] = {text = 'S-BLOCK', state = 'visual'}, [''] = {text = 'S-BLOCK', state = 'visual'},
[''] = {text = 'V-BLOCK', state = 'visual'},
['?'] = {text = '???', state = 'inactive'},
['R'] = {text = 'REPLACE', state = 'replace'},
['S'] = {text = 'S-LINE', state = 'visual'},
['V'] = {text = 'V-LINE', state = 'visual'},
['c'] = {text = 'COMMAND', state = 'command'},
['i'] = {text = 'INSERT', state = 'insert'},
['n'] = {text = 'NORMAL', state = 'normal'},
['r'] = {text = 'PROMPT', state = 'replace'},
['s'] = {text = 'SELECT', state = 'visual'},
['t'] = {text = 'TERMINAL', state = 'command'}, ['t'] = {text = 'TERMINAL', state = 'command'},
['v'] = {text = 'VISUAL', state = 'visual'},
} }
function M.echo(msg, hlgroup) function M.echo(msg, hlgroup)