mirror of
https://github.com/gabehf/base46.git
synced 2026-03-08 15:08:17 -07:00
Fix bugs (#168)
* fix: Specify target now replace theme only * fix: Change order to reload highlights immediately
This commit is contained in:
parent
b63b26aae7
commit
7b1f22a690
1 changed files with 4 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue