summaryrefslogtreecommitdiff
path: root/lua/tjk/plugins
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2025-02-13 21:44:51 -0600
committerTim Keller <tjkeller.xyz>2025-02-13 21:44:51 -0600
commit7d7f28d9b078a25c60d49c0a3904f7bd8c7940ca (patch)
tree0642c61c35eb697e0f3cd051ba600cae68911cf5 /lua/tjk/plugins
parentab88b671b6fb7943371dba5ea43ed9d227310459 (diff)
downloadnvim-7d7f28d9b078a25c60d49c0a3904f7bd8c7940ca.tar.xz
nvim-7d7f28d9b078a25c60d49c0a3904f7bd8c7940ca.zip
fix tty colorscheme issues and use default file selector
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 };