Skip to content

Commit 457e9c6

Browse files
committed
perf(highlights): load colors module only when user highlight is present
1 parent c6154cb commit 457e9c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/one_monokai/highlights/init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ end
1818
---Load all highlight groups
1919
function highlights.load()
2020
local config = require "one_monokai.config"
21-
local colors = require "one_monokai.colors"
2221
local default = require "one_monokai.highlights.groups"
2322

2423
set_highlight(default)
2524

2625
if config.highlights then
26+
local colors = require "one_monokai.colors"
27+
2728
set_highlight(config.highlights(colors))
2829
end
2930
end

0 commit comments

Comments
 (0)