Skip to content

Commit

Permalink
fix: unmap after applying configuration, fixes #89
Browse files Browse the repository at this point in the history
  • Loading branch information
max397574 committed Jul 20, 2024
1 parent 6201533 commit 975cceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/better_escape.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ local function map_keys()
end

function M.setup(update)
unmap_keys()
if update and update.default_mappings == false then
settings.mappings = {}
end
Expand All @@ -169,6 +168,7 @@ function M.setup(update)
settings.keys
end
end
unmap_keys()
map_keys()
end

Expand Down

0 comments on commit 975cceb

Please sign in to comment.