fix: make sure Plugin.opt is always a boolean

This commit is contained in:
Folke Lemaitre 2022-11-29 20:36:06 +01:00
parent 812bb3c8b7
commit ca78dd77ac
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 2 additions and 1 deletions

View file

@ -212,6 +212,7 @@ function M.update_state(opts)
or plugin.keys
or plugin.ft
or plugin.cmd
plugin.opt = plugin.opt and true or false
end
local opt = plugin.opt and "opt" or "start"
plugin.dir = Config.options.packpath .. "/" .. opt .. "/" .. plugin.name