fix: override options before register keys

This commit is contained in:
Mactavish 2022-05-22 13:06:24 +02:00 committed by siduck
parent d264c3c8e1
commit 0b0d6b6fc1

View File

@ -55,6 +55,8 @@ local options = {
}, },
} }
options = nvchad.load_override(options, "folke/which-key.nvim")
local mappings = nvchad.load_config().mappings local mappings = nvchad.load_config().mappings
local mapping_groups = { groups = vim.deepcopy(mappings.groups) } local mapping_groups = { groups = vim.deepcopy(mappings.groups) }
@ -76,6 +78,5 @@ end
register_mappings(mappings, options) register_mappings(mappings, options)
register_mappings(mapping_groups, options) register_mappings(mapping_groups, options)
options = nvchad.load_override(options, "folke/which-key.nvim")
wk.setup(options) wk.setup(options)