feat: temporary colorscheme to use during install during startup

This commit is contained in:
Folke Lemaitre 2022-12-02 19:18:10 +01:00
parent 0ba218a065
commit 7ec65e4cd9
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 15 additions and 2 deletions

View file

@ -9,8 +9,13 @@ M.init_done = false
function M.setup()
-- install missing plugins
if Config.options.install_missing then
if Config.options.install.missing then
Util.track("install")
for _, colorscheme in ipairs(Config.options.install.colorscheme) do
if pcall(vim.cmd.colorscheme, colorscheme) then
break
end
end
for _, plugin in pairs(Config.plugins) do
if not plugin._.installed then
vim.cmd("do User LazyInstallPre")