fix: override options before register keys
This commit is contained in:
parent
d264c3c8e1
commit
0b0d6b6fc1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user