fix: always clear before setting colorscheme
This commit is contained in:
parent
14ab22b51d
commit
1356b20bc2
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user