mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-01 13:04:33 +02:00
fix(config): options cant be disabled with lazyvim config. Fixes #566
This commit is contained in:
parent
a9e9204dae
commit
02c5e8d953
2 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue