Better handling for missing colorscheme

This commit is contained in:
Price Hiller 2022-01-12 23:19:36 -06:00
parent 8f3e9c2648
commit 5fc61260b0

View File

@ -5,7 +5,12 @@ vim.g.tokyonight_style = "night"
vim.g.tokyonight_transparent = true
vim.g.tokyonight_transparent_sidebar = true
vim.cmd("colorscheme tokyonight")
local loaded, _ = pcall(vim.cmd, "colorscheme tokyonight")
if not loaded then
error("Colorscheme could not be loaded likely due to a packerstrap install, restart neovim once packer is done...")
end
end
return M