fix(nvim): handle invalid calls to AlphaRedraw
This commit is contained in:
parent
12cc5fc8e3
commit
2b7703d85c
@ -146,7 +146,7 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||||||
50,
|
50,
|
||||||
1000,
|
1000,
|
||||||
vim.schedule_wrap(function()
|
vim.schedule_wrap(function()
|
||||||
vim.cmd("AlphaRedraw")
|
pcall(vim.cmd, "AlphaRedraw")
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -154,7 +154,6 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||||||
buffer = 0,
|
buffer = 0,
|
||||||
desc = "Shut down alpha timer",
|
desc = "Shut down alpha timer",
|
||||||
callback = function(input)
|
callback = function(input)
|
||||||
alpha_timer:close()
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user