diff --git a/examples/lua/layer.lua b/examples/lua/layer.lua index 9e00acb..5267c9b 100644 --- a/examples/lua/layer.lua +++ b/examples/lua/layer.lua @@ -21,7 +21,8 @@ local layer = libmodal.layer.new( -- add an additional mapping for `` to exit the mode layer:map('n', '', function() layer:exit() end, {}) -layer:enter() +-- Type `ll` in normal mode to enter the layer +vim.keymap.set('n', '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')