mirror of
https://github.com/Iron-E/nvim-libmodal
synced 2024-11-18 15:25:49 +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.
17 lines
275 B
VimL
17 lines
275 B
VimL
" Create a new layer.
|
|
let s:layer = {
|
|
\ 'n': {
|
|
\ 'gg': {
|
|
\ 'rhs': 'G',
|
|
\ 'noremap': v:true,
|
|
\ },
|
|
\ 'G': {
|
|
\ 'rhs': 'gg',
|
|
\ 'noremap': v:true
|
|
\ }
|
|
\ }
|
|
\}
|
|
|
|
" Capture the exit function
|
|
let s:exitFunc = luaeval("require('libmodal').layer.enter(_A, '<Esc>')", s:layer)
|