feat(minit): fallback to habamax when no colorscheme set

This commit is contained in:
Folke Lemaitre 2024-06-29 08:11:42 +02:00
parent 3078688263
commit 88f4d13e5f
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ function M.setup(opts)
vim.o.loadplugins = true vim.o.loadplugins = true
require("lazy").setup(opts) require("lazy").setup(opts)
if vim.g.colors_name == nil then
vim.cmd("colorscheme habamax")
end
require("lazy").update():wait() require("lazy").update():wait()
if vim.bo.filetype == "lazy" then if vim.bo.filetype == "lazy" then
local errors = false local errors = false