summaryrefslogtreecommitdiffstats
path: root/lua/core/highlight.lua
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-08-11 20:43:58 -0400
committerSquibid <me@zacharyscheiman.com>2023-08-11 20:43:58 -0400
commit590f0309995a569954fc94b1d5df6b6391ead9fa (patch)
treecfca10f62e189018c0bb7944d446423e6397f375 /lua/core/highlight.lua
parentb8d70ed288b3b542b7bb24609384aa540339b2da (diff)
downloadnvim-590f0309995a569954fc94b1d5df6b6391ead9fa.tar.gz
nvim-590f0309995a569954fc94b1d5df6b6391ead9fa.tar.bz2
nvim-590f0309995a569954fc94b1d5df6b6391ead9fa.zip
kitchen sink cause I'm too lazy to sort through this junk
Diffstat (limited to 'lua/core/highlight.lua')
-rw-r--r--lua/core/highlight.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/core/highlight.lua b/lua/core/highlight.lua
index c90fd3f..716c5ed 100644
--- a/lua/core/highlight.lua
+++ b/lua/core/highlight.lua
@@ -1,4 +1,5 @@
local highlight = function(group, opts, space)
+ if not pcall(require, "mellow") then return end
space = space or 0
if type(group) == 'table' then
@@ -10,7 +11,7 @@ local highlight = function(group, opts, space)
end
end
-local c = require('mellow.colors').dark
+if pcall(require, "mellow") then c = require('mellow.colors').dark end
-- vim highlights -------------------------------------------------------------
highlight('CursorLineNr', { bg = c.bg_dark, fg = c.fg, bold = true })