fix: #34 - match against any pattern more than once if VimEnter and ColorScheme)

This commit is contained in:
Pocco81
2022-08-03 08:25:59 -05:00
parent 6cbadbd385
commit d37a766858

View File

@@ -103,7 +103,7 @@ function M.on()
group = "AutoSave",
})
api.nvim_create_autocmd({"ColorScheme"}, {
api.nvim_create_autocmd({"VimEnter", "ColorScheme"}, {
callback = function()
vim.schedule(function()
if cnf.execution_message.dim > 0 then
@@ -120,7 +120,6 @@ function M.on()
end
end)
end,
once = true,
pattern = "*",
group = "AutoSave",
})