Skip to content

Commit 84e18f2

Browse files
committed
fix: #113
revert 41f844a
1 parent 9425590 commit 84e18f2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4141
- fix #83: inactive lualine colors
4242
- enhance: inactive statusline
4343
- load colorscheme according to `theme_style` config
44+
- revert 41f844a #113
4445

4546
## [v0.0.2] - 15 Sep 2021
4647

lua/github-theme/util.lua

+4-5
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ end
118118

119119
--- Delete the autocmds when the theme changes to something else
120120
function util.onColorScheme()
121-
print(vim.g.github_theme_style)
122121
if vim.g.colors_name ~= "github" then
123122
vim.cmd([[autocmd! github]])
124123
vim.cmd([[augroup! github]])
@@ -216,11 +215,11 @@ function util.load(theme)
216215
-- load base theme
217216
util.syntax(theme.base)
218217

219-
-- load syntax for plugins and terminal
220-
util.autocmds(theme.config)
221-
util.terminal(theme.colors)
222-
util.syntax(theme.plugins)
218+
-- load syntax for plugins and terminal async
223219
vim.defer_fn(function()
220+
util.autocmds(theme.config)
221+
util.terminal(theme.colors)
222+
util.syntax(theme.plugins)
224223
util.syntax(theme.defer)
225224
end, 100)
226225
end

0 commit comments

Comments
 (0)