mirror of
https://github.com/gabehf/base46.git
synced 2026-03-09 23:48:16 -07:00
polish one_light theme (#67) | fix bugged toggle btn
This commit is contained in:
parent
00c34f5dd0
commit
81209f4fec
5 changed files with 90 additions and 35 deletions
|
|
@ -67,14 +67,18 @@ M.toggle_theme = function()
|
|||
local theme1 = themes[1]
|
||||
local theme2 = themes[2]
|
||||
|
||||
if vim.g.nvchad_theme == theme1 then
|
||||
if vim.g.toggle_theme_icon == " " then
|
||||
vim.g.toggle_theme_icon = " "
|
||||
else
|
||||
vim.g.toggle_theme_icon = " "
|
||||
end
|
||||
|
||||
if vim.g.nvchad_theme == theme1 then
|
||||
vim.g.nvchad_theme = theme2
|
||||
|
||||
require("nvchad").reload_theme()
|
||||
require("nvchad").change_theme(theme1, theme2)
|
||||
elseif vim.g.nvchad_theme == theme2 then
|
||||
vim.g.toggle_theme_icon = " "
|
||||
vim.g.nvchad_theme = theme1
|
||||
|
||||
require("nvchad").reload_theme()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue