diff options
Diffstat (limited to '')
-rw-r--r-- | lua/core/highlight.lua | 3 |
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 }) |