Save implementation of other layers
parent
dc16475788
commit
eb6f39b43a
@ -0,0 +1,19 @@
|
|||||||
|
local libmodal = require('libmodal')
|
||||||
|
|
||||||
|
-- create a new layer.
|
||||||
|
local exitFunc = libmodal.layer.enter('FOO', {
|
||||||
|
['n'] = { -- normal mode mappings
|
||||||
|
['gg'] = { -- remap `gg`
|
||||||
|
['rhs'] = 'G', -- map it to `G`
|
||||||
|
['noremap'] = true, -- don't recursively map.
|
||||||
|
},
|
||||||
|
['G'] = { -- remap `G`
|
||||||
|
['rhs'] = 'gg', -- map it to `gg`
|
||||||
|
['noremap'] = true -- don't recursively map.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.loop.new_timer():start(5000, 0, vim.schedule_wrap(
|
||||||
|
function() exitFunc(); print('EXITED.') end
|
||||||
|
))
|
Loading…
Reference in New Issue