fix: check for installed plugins with plain find

This commit is contained in:
Folke Lemaitre 2022-12-20 07:15:26 +01:00
parent 833b387213
commit a18988372f
No known key found for this signature in database
GPG Key ID: 36B7C1C85AAC487F
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ function M.update_state()
or plugin.init or plugin.init
plugin.lazy = lazy and true or false plugin.lazy = lazy and true or false
end end
if plugin.dir:find(Config.options.root) == 1 then if plugin.dir:find(Config.options.root, 1, true) == 1 then
plugin._.installed = installed[plugin.name] ~= nil plugin._.installed = installed[plugin.name] ~= nil
installed[plugin.name] = nil installed[plugin.name] = nil
else else