feat(ui): add option to disable lazy.nvim installer interface

This commit is contained in:
Dayvid Albuquerque 2024-01-07 12:47:48 -03:00
commit 630a34da82
4 changed files with 7 additions and 1 deletions

View file

@ -464,6 +464,8 @@ return {
-- Track each new require in the Lazy profiling tab
require = false,
},
-- Show the lazy.nvim installer interface
show_ui = true,
}
```

View file

@ -567,6 +567,8 @@ CONFIGURATION *lazy.nvim-lazy.nvim-configuration*
-- Track each new require in the Lazy profiling tab
require = false,
},
-- Show the lazy.nvim installer interface
show_ui = true,
}
<

View file

@ -174,6 +174,7 @@ M.defaults = {
-- Track each new require in the Lazy profiling tab
require = false,
},
show_ui = true,
debug = false,
}

View file

@ -73,7 +73,8 @@ function M.install_missing()
end
end
Cache.reset()
require("lazy.manage").install({ wait = true, lockfile = true, clear = false })
require("lazy.manage").install({ show = Config.options.show_ui, wait = true, lockfile = true, clear = false })
-- remove any installed plugins from indexed, so cache will index again
for _, p in pairs(Config.plugins) do
if p._.installed then