Improve keymap handling (#720)

* Improve keymap handling

* Simplify

* Fix tests

* Fix callback no expr mapping

* Rename functions

* Use manual key conversion logic

* fmt
This commit is contained in:
hrsh7th
2022-01-11 02:18:09 +09:00
committed by GitHub
parent ef5bdb43fa
commit d6aaea47f4
3 changed files with 52 additions and 93 deletions

View File

@@ -77,7 +77,7 @@ misc.id = setmetatable({
group = {},
}, {
__call = function(_, group)
misc.id.group[group] = misc.id.group[group] or vim.loop.now()
misc.id.group[group] = misc.id.group[group] or 0
misc.id.group[group] = misc.id.group[group] + 1
return misc.id.group[group]
end,