mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 11:24:14 +00:00
feat(ui): add option to disable lazy.nvim installer interface
This commit is contained in:
parent
96584866b9
commit
630a34da82
4 changed files with 7 additions and 1 deletions
|
@ -464,6 +464,8 @@ return {
|
||||||
-- Track each new require in the Lazy profiling tab
|
-- Track each new require in the Lazy profiling tab
|
||||||
require = false,
|
require = false,
|
||||||
},
|
},
|
||||||
|
-- Show the lazy.nvim installer interface
|
||||||
|
show_ui = true,
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -567,6 +567,8 @@ CONFIGURATION *lazy.nvim-lazy.nvim-configuration*
|
||||||
-- Track each new require in the Lazy profiling tab
|
-- Track each new require in the Lazy profiling tab
|
||||||
require = false,
|
require = false,
|
||||||
},
|
},
|
||||||
|
-- Show the lazy.nvim installer interface
|
||||||
|
show_ui = true,
|
||||||
}
|
}
|
||||||
<
|
<
|
||||||
|
|
||||||
|
|
|
@ -174,6 +174,7 @@ M.defaults = {
|
||||||
-- Track each new require in the Lazy profiling tab
|
-- Track each new require in the Lazy profiling tab
|
||||||
require = false,
|
require = false,
|
||||||
},
|
},
|
||||||
|
show_ui = true,
|
||||||
debug = false,
|
debug = false,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,8 @@ function M.install_missing()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Cache.reset()
|
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
|
-- remove any installed plugins from indexed, so cache will index again
|
||||||
for _, p in pairs(Config.plugins) do
|
for _, p in pairs(Config.plugins) do
|
||||||
if p._.installed then
|
if p._.installed then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue