fix: override options before register keys
This commit is contained in:
parent
d264c3c8e1
commit
0b0d6b6fc1
1 changed files with 2 additions and 1 deletions
|
@ -55,6 +55,8 @@ local options = {
|
|||
},
|
||||
}
|
||||
|
||||
options = nvchad.load_override(options, "folke/which-key.nvim")
|
||||
|
||||
local mappings = nvchad.load_config().mappings
|
||||
local mapping_groups = { groups = vim.deepcopy(mappings.groups) }
|
||||
|
||||
|
@ -76,6 +78,5 @@ end
|
|||
register_mappings(mappings, options)
|
||||
register_mappings(mapping_groups, options)
|
||||
|
||||
options = nvchad.load_override(options, "folke/which-key.nvim")
|
||||
|
||||
wk.setup(options)
|
||||
|
|
Loading…
Reference in a new issue