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
2 changed files with 68 additions and 52 deletions
+1 -1
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