mirror of
https://github.com/zoriya/auto-save.nvim.git
synced 2025-12-06 06:36:11 +00:00
fix: #34 - match against any pattern more than once if VimEnter and ColorScheme)
This commit is contained in:
@@ -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",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user