mirror of
https://github.com/gabehf/base46.git
synced 2026-03-14 09:46:00 -07:00
update replace_word module path
This commit is contained in:
parent
1a3faca5fd
commit
e56d8b27ad
1 changed files with 3 additions and 3 deletions
|
|
@ -173,11 +173,11 @@ M.toggle_theme = function()
|
||||||
if g.nvchad_theme == theme1 then
|
if g.nvchad_theme == theme1 then
|
||||||
g.toggle_theme_icon = " "
|
g.toggle_theme_icon = " "
|
||||||
vim.g.nvchad_theme = theme2
|
vim.g.nvchad_theme = theme2
|
||||||
require("nvchad").replace_word('theme = "' .. theme1, 'theme = "' .. theme2)
|
require("nvchad.utils").replace_word('theme = "' .. theme1, 'theme = "' .. theme2)
|
||||||
else
|
else
|
||||||
vim.g.nvchad_theme = theme1
|
vim.g.nvchad_theme = theme1
|
||||||
g.toggle_theme_icon = " "
|
g.toggle_theme_icon = " "
|
||||||
require("nvchad").replace_word('theme = "' .. theme2, 'theme = "' .. theme1)
|
require("nvchad.utils").replace_word('theme = "' .. theme2, 'theme = "' .. theme1)
|
||||||
end
|
end
|
||||||
|
|
||||||
M.load_all_highlights()
|
M.load_all_highlights()
|
||||||
|
|
@ -191,7 +191,7 @@ M.toggle_transparency = function()
|
||||||
local old_data = "transparency = " .. tostring(config.ui.transparency)
|
local old_data = "transparency = " .. tostring(config.ui.transparency)
|
||||||
local new_data = "transparency = " .. tostring(g.transparency)
|
local new_data = "transparency = " .. tostring(g.transparency)
|
||||||
|
|
||||||
require("nvchad").replace_word(old_data, new_data)
|
require("nvchad.utils").replace_word(old_data, new_data)
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue