neovim: set theme based on $TMUX env variable

This commit is contained in:
2022-08-22 14:42:57 +03:00
parent 722b7e1ee6
commit 10cf69823a

View File

@@ -2,7 +2,13 @@ vim.api.nvim_set_hl(0, "SpellBad", {
fg = "red",
})
local env = vim.fn.environ()
if env["TMUX"] then
vim.cmd("colorscheme gruvbox-material")
else
vim.cmd("colorscheme ayu")
end
vim.cmd([[
colorscheme gruvbox-material
hi clear SignColumn
]])