summaryrefslogtreecommitdiff
path: root/lua/tjk/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'lua/tjk/plugins')
-rw-r--r--lua/tjk/plugins/colorizer.lua1
-rw-r--r--lua/tjk/plugins/colorscheme.lua7
-rw-r--r--lua/tjk/plugins/indentblankline.lua1
3 files changed, 3 insertions, 6 deletions
diff --git a/lua/tjk/plugins/colorizer.lua b/lua/tjk/plugins/colorizer.lua
index f4f3868..964b6f4 100644
--- a/lua/tjk/plugins/colorizer.lua
+++ b/lua/tjk/plugins/colorizer.lua
@@ -1,5 +1,6 @@
return {
"norcalli/nvim-colorizer.lua", -- css color highlighter
+ enabled = vim.opt.termguicolors._value,
opts = {
"css",
"sass",
diff --git a/lua/tjk/plugins/colorscheme.lua b/lua/tjk/plugins/colorscheme.lua
index bb62cb3..2bffef6 100644
--- a/lua/tjk/plugins/colorscheme.lua
+++ b/lua/tjk/plugins/colorscheme.lua
@@ -4,14 +4,9 @@ if os.getenv "USER" == "root" then
return {}
end
--- disable gruvbox and termguicolors when in a tty
-if os.getenv "DISPLAY" == nil then
- vim.opt.termguicolors = false
- return {}
-end
-
return {
"ellisonleao/gruvbox.nvim",
+ enabled = vim.opt.termguicolors._value,
priority = 9001,
config = function()
vim.o.background = "dark"
diff --git a/lua/tjk/plugins/indentblankline.lua b/lua/tjk/plugins/indentblankline.lua
index bba7c1a..826f1ae 100644
--- a/lua/tjk/plugins/indentblankline.lua
+++ b/lua/tjk/plugins/indentblankline.lua
@@ -1,5 +1,6 @@
return {
"lukas-reineke/indent-blankline.nvim",
+ enabled = vim.opt.termguicolors._value,
main = "ibl",
opts = {
scope = { enabled = false };