mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
refactor: renamed Config.opt => Config.defaults.opt
This commit is contained in:
parent
5d81c5062b
commit
334f32e595
2 changed files with 7 additions and 4 deletions
|
@ -160,14 +160,14 @@ function M.update_state()
|
|||
for _, plugin in pairs(Config.plugins) do
|
||||
plugin._ = plugin._ or {}
|
||||
if plugin.opt == nil then
|
||||
plugin.opt = plugin.dep
|
||||
or Config.options.opt
|
||||
local opt = plugin.dep
|
||||
or Config.options.defaults.opt
|
||||
or plugin.module
|
||||
or plugin.event
|
||||
or plugin.keys
|
||||
or plugin.ft
|
||||
or plugin.cmd
|
||||
plugin.opt = plugin.opt and true or false
|
||||
plugin.opt = opt and true or false
|
||||
end
|
||||
local opt = plugin.opt and "opt" or "start"
|
||||
plugin.dir = Config.options.packpath .. "/" .. opt .. "/" .. plugin.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue