We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f54f91 commit 2a73a82Copy full SHA for 2a73a82
lua/one_monokai/highlights/init.lua
@@ -18,13 +18,16 @@ end
18
19
---Load all highlight groups.
20
function highlights.load()
21
+ -- Core groups should be loaded first to prevent screen flickering.
22
local core_groups = require "one_monokai.highlights.groups.core"
23
set_highlight(core_groups)
24
- local async
25
+ ---@type uv.uv_async_t?
26
+ local async = nil
27
+
28
async = vim.uv.new_async(vim.schedule_wrap(function()
- local default_groups = require "one_monokai.highlights.groups"
- set_highlight(default_groups)
29
+ local groups = require "one_monokai.highlights.groups"
30
+ set_highlight(groups)
31
32
if async ~= nil then
33
async:close()
0 commit comments