fix: always clear before setting colorscheme

This commit is contained in:
Folke Lemaitre 2022-12-20 22:30:12 +01:00
parent 14ab22b51d
commit 1356b20bc2
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040

View File

@ -172,9 +172,7 @@ end
---@param theme Theme ---@param theme Theme
function M.load(theme) function M.load(theme)
-- only needed to clear when not the default colorscheme -- only needed to clear when not the default colorscheme
if vim.g.colors_name then
vim.cmd("hi clear") vim.cmd("hi clear")
end
vim.o.termguicolors = true vim.o.termguicolors = true
vim.g.colors_name = "tokyonight" vim.g.colors_name = "tokyonight"