chore(nvim): only allow wezterm dynamic change
parent
e1d4f18cbd
commit
583dbf1ab1
|
@ -98,8 +98,13 @@ require("lazy").setup({
|
||||||
vim.cmd("colorscheme catppuccin-mocha")
|
vim.cmd("colorscheme catppuccin-mocha")
|
||||||
end,
|
end,
|
||||||
set_light_mode = function()
|
set_light_mode = function()
|
||||||
|
if vim.env.TERM_PROGRAM == "WezTerm" then
|
||||||
vim.api.nvim_set_option("background", "light")
|
vim.api.nvim_set_option("background", "light")
|
||||||
vim.cmd("colorscheme catppuccin-latte")
|
vim.cmd("colorscheme catppuccin-latte")
|
||||||
|
else
|
||||||
|
vim.api.nvim_set_option("background", "dark")
|
||||||
|
vim.cmd("colorscheme catppuccin-mocha")
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue