keymap-layer.nvim icon indicating copy to clipboard operation
keymap-layer.nvim copied to clipboard

Graceful optional `enter` and `exit`

Open ryuheechul opened this issue 2 years ago • 1 comments

enter and exit` being optional makes it sound like I can omit the entire key but that was not true and only reading the error message didn't give any clue on that.

So only after reading the source code of this plugin, I was able to figure the conclusion of below.

  1. works
local layer = KeyLayer({
   enter = {},
   layer = {...},
   exit = {}
})
  1. doesn't work
local layer = KeyLayer({
   layer = {...},
})

I think 2. should work as well.

ryuheechul avatar Dec 20 '22 23:12 ryuheechul

btw, it's a brilliant plugin!

ryuheechul avatar Dec 20 '22 23:12 ryuheechul