Skip to content

Commit 2e37156

Browse files
committed
fix(keymap): apply user keymaps when default_global_keymaps is false
This should fix #160
1 parent 5d0a967 commit 2e37156

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/opencode/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function M.setup(opts)
251251
M.values = vim.tbl_deep_extend('force', M.values, opts --[[@as OpencodeConfig]])
252252

253253
if opts.default_global_keymaps == false then
254-
M.values.keymap.editor = {}
254+
M.values.keymap.editor = opts.keymap and opts.keymap.editor or {}
255255
end
256256

257257
update_keymap_prefix(M.values.keymap_prefix, M.defaults.keymap_prefix)

0 commit comments

Comments
 (0)