2022-04-25 21:59:33 +00:00
|
|
|
local libmodal = require 'libmodal'
|
2020-05-26 02:27:21 +00:00
|
|
|
|
2022-04-26 15:33:37 +00:00
|
|
|
-- create a new layer
|
2022-04-25 21:59:33 +00:00
|
|
|
libmodal.layer.enter(
|
|
|
|
{
|
|
|
|
n = { -- normal mode mappings
|
|
|
|
gg = { -- remap `gg`
|
|
|
|
rhs = 'G', -- map it to `G`
|
2022-04-26 15:33:37 +00:00
|
|
|
noremap = true, -- don't recursively map
|
2022-04-25 21:59:33 +00:00
|
|
|
},
|
|
|
|
G = { -- remap `G`
|
|
|
|
rhs = 'gg', -- map it to `gg`
|
2022-04-26 15:33:37 +00:00
|
|
|
noremap = true -- don't recursively map
|
2022-04-25 21:59:33 +00:00
|
|
|
}
|
2020-05-26 02:27:21 +00:00
|
|
|
}
|
2022-04-25 21:59:33 +00:00
|
|
|
},
|
|
|
|
'<Esc>'
|
|
|
|
)
|
2020-05-26 02:27:21 +00:00
|
|
|
|
2022-04-26 15:33:37 +00:00
|
|
|
-- the layer will deactivate when you press <Esc>
|