* fix: Specify target

now replace theme only

* fix: Change order to reload highlights immediately
v2.5
Mideum 3 years ago committed by GitHub
parent b63b26aae7
commit 7b1f22a690
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -173,17 +173,17 @@ M.toggle_theme = function()
return
end
M.load_all_highlights()
if g.nvchad_theme == theme1 then
g.toggle_theme_icon = ""
vim.g.nvchad_theme = theme2
require("nvchad").replace_word(theme1, theme2)
require("nvchad").replace_word('theme = "' .. theme1, 'theme = "' .. theme2)
else
vim.g.nvchad_theme = theme1
g.toggle_theme_icon = ""
require("nvchad").replace_word(theme2, theme1)
require("nvchad").replace_word('theme = "' .. theme2, 'theme = "' .. theme1)
end
M.load_all_highlights()
end
M.toggle_transparency = function()

Loading…
Cancel
Save