mirror of
https://github.com/Iron-E/nvim-libmodal
synced 2024-11-10 13:10:29 +00:00
49a02ad692
This was my first plugin. Looking back on it, it was full of bad design decisions (and I have elected to keep most of the user-facing ones for backwards-compatability). This merge tries to uncrustify the plugin by standardizing the documentation, removing much unecessary code, reorganizing the internal structures, and removing references to my own made-up terminology.
12 lines
313 B
VimL
12 lines
313 B
VimL
" Register key commands and what they do.
|
||
let s:barModeKeymaps = {
|
||
\ '': 'echom "You cant exit using escape."',
|
||
\ 'q': 'let g:barModeExit = 1'
|
||
\}
|
||
|
||
" Tell the mode not to exit automatically.
|
||
let g:barModeExit = 0
|
||
|
||
" Enter the mode using the keymaps created before.
|
||
call libmodal#Enter('BAR', s:barModeKeymaps, 1)
|