mirror of
https://github.com/Iron-E/nvim-libmodal
synced 2024-11-10 13:10:29 +00:00
21 lines
398 B
Lua
21 lines
398 B
Lua
local libmodal = require 'libmodal'
|
|
|
|
-- create a new layer
|
|
libmodal.layer.enter(
|
|
{
|
|
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
|
|
}
|
|
}
|
|
},
|
|
'<Esc>'
|
|
)
|
|
|
|
-- the layer will deactivate when you press <Esc>
|