test(layer): can be used multiple times

pull/23/head
Iron-E 1 year ago
parent 51f7373f2b
commit 6d85cb30e0
No known key found for this signature in database
GPG Key ID: 83A6AEB40395D40D

@ -21,7 +21,8 @@ local layer = libmodal.layer.new(
-- add an additional mapping for `<Esc>` to exit the mode
layer:map('n', '<Esc>', function() layer:exit() end, {})
layer:enter()
-- Type `<Leader>ll` in normal mode to enter the layer
vim.keymap.set('n', '<Leader>ll', function() layer:enter() end, {})
--[[ unmap `gg`. Notice that now both `gg` and `G` return the cursor to the top. ]]
layer:unmap(nil, 'n', 'gg')

Loading…
Cancel
Save