You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
" 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)
|