fix(config): options cant be disabled with lazyvim config. Fixes #566

This commit is contained in:
Folke Lemaitre
2023-04-16 11:34:35 +02:00
parent a9e9204dae
commit 02c5e8d953
2 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,8 @@ local defaults = {
defaults = {
autocmds = true, -- lazyvim.config.autocmds
keymaps = true, -- lazyvim.config.keymaps
options = true, -- lazyvim.config.options
-- lazyvim.config.options can't be configured here since that's loaded before lazyvim setup
-- if you want to disable loading options, add `package.loaded["lazyvim.config.options"] = true` to the top of your init.lua
},
-- icons used by other plugins
icons = {
@ -141,7 +142,7 @@ function M.load(name)
})
end
-- always load lazyvim, then user file
if M.defaults[name] then
if M.defaults[name] or name == "options" then
_load("lazyvim.config." .. name)
end
_load("config." .. name)