mirror of https://github.com/folke/lazy.nvim.git
fix: check for installed plugins with plain find
This commit is contained in:
parent
833b387213
commit
a18988372f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue