nvim_del_autocmd was being called in a callback from acp_client, which is a fast event context where it's not allowed. Wrapping it with vim.schedule() defers the execution to a safe context. Signed-off-by: Nayab Sayed <nayabbasha.sayed@microchip.com>