summaryrefslogtreecommitdiff
path: root/lua/tjk/plugins/colorscheme.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/tjk/plugins/colorscheme.lua')
-rw-r--r--lua/tjk/plugins/colorscheme.lua15
1 files changed, 5 insertions, 10 deletions
diff --git a/lua/tjk/plugins/colorscheme.lua b/lua/tjk/plugins/colorscheme.lua
index 2307097..bb62cb3 100644
--- a/lua/tjk/plugins/colorscheme.lua
+++ b/lua/tjk/plugins/colorscheme.lua
@@ -1,22 +1,17 @@
-local root_mode = os.getenv "USER" == "root"
-local tty_mode = os.getenv "DISPLAY" == nil
-
--- load condition
-local enable_gruvbox = not root_mode and not tty_mode
-
-- use another colorscheme if running as root
-if root_mode then
+if os.getenv "USER" == "root" then
vim.cmd.colorscheme "koehler"
+ return {}
end
--- disable termguicolors when in a tty
-if tty_mode then
+-- disable gruvbox and termguicolors when in a tty
+if os.getenv "DISPLAY" == nil then
vim.opt.termguicolors = false
+ return {}
end
return {
"ellisonleao/gruvbox.nvim",
- cond = enable_gruvbox,
priority = 9001,
config = function()
vim.o.background = "dark"