feat(rust): refactor to allow easy user customization and keymaps

This commit is contained in:
Folke Lemaitre 2023-07-02 12:45:21 +02:00
parent 61e3ce8cdc
commit a46d47653e
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 68 additions and 52 deletions

View file

@ -83,7 +83,7 @@ function M.resolve(buffer)
local function add(keymap)
local keys = Keys.parse(keymap)
if keys[2] == vim.NIL or keys[2] == false then
if keys[2] == false then
keymaps[keys.id] = nil
else
keymaps[keys.id] = keys