Skip to content

Commit 2a73a82

Browse files
committed
chore: add comment, rename variables
1 parent 5f54f91 commit 2a73a82

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lua/one_monokai/highlights/init.lua

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ end
1818

1919
---Load all highlight groups.
2020
function highlights.load()
21+
-- Core groups should be loaded first to prevent screen flickering.
2122
local core_groups = require "one_monokai.highlights.groups.core"
2223
set_highlight(core_groups)
2324

24-
local async
25+
---@type uv.uv_async_t?
26+
local async = nil
27+
2528
async = vim.uv.new_async(vim.schedule_wrap(function()
26-
local default_groups = require "one_monokai.highlights.groups"
27-
set_highlight(default_groups)
29+
local groups = require "one_monokai.highlights.groups"
30+
set_highlight(groups)
2831

2932
if async ~= nil then
3033
async:close()

0 commit comments

Comments
 (0)