Skip to content

Commit 975cceb

Browse files
committed
fix: unmap after applying configuration, fixes #89
1 parent 6201533 commit 975cceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/better_escape.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ local function map_keys()
142142
end
143143

144144
function M.setup(update)
145-
unmap_keys()
146145
if update and update.default_mappings == false then
147146
settings.mappings = {}
148147
end
@@ -169,6 +168,7 @@ function M.setup(update)
169168
settings.keys
170169
end
171170
end
171+
unmap_keys()
172172
map_keys()
173173
end
174174

0 commit comments

Comments
 (0)