chore(nvim): only allow wezterm dynamic change

main
sudo pacman -Syu 2023-08-06 02:51:02 +07:00
parent e1d4f18cbd
commit 583dbf1ab1
1 changed files with 7 additions and 2 deletions

View File

@ -98,8 +98,13 @@ require("lazy").setup({
vim.cmd("colorscheme catppuccin-mocha")
end,
set_light_mode = function()
vim.api.nvim_set_option("background", "light")
vim.cmd("colorscheme catppuccin-latte")
if vim.env.TERM_PROGRAM == "WezTerm" then
vim.api.nvim_set_option("background", "light")
vim.cmd("colorscheme catppuccin-latte")
else
vim.api.nvim_set_option("background", "dark")
vim.cmd("colorscheme catppuccin-mocha")
end
end,
})
end,