mirror of
https://github.com/gabehf/base46.git
synced 2026-03-09 07:28:50 -07:00
fix theme toggle replace_word func args #294
This commit is contained in:
parent
619368a05e
commit
6ffabeac88
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ M.toggle_theme = function()
|
||||||
config.ui.theme = (themes[1] == config.ui.theme and themes[2]) or themes[1]
|
config.ui.theme = (themes[1] == config.ui.theme and themes[2]) or themes[1]
|
||||||
|
|
||||||
local old_theme = dofile(vim.fn.stdpath "config" .. "/lua/chadrc.lua").ui.theme
|
local old_theme = dofile(vim.fn.stdpath "config" .. "/lua/chadrc.lua").ui.theme
|
||||||
require("nvchad.utils").replace_word(old_theme, config.ui.theme)
|
require("nvchad.utils").replace_word('theme = "' .. old_theme, 'theme = "' .. config.ui.theme)
|
||||||
M.load_all_highlights()
|
M.load_all_highlights()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue