fix E5560 wrap vim api calls inside luv loop (#282)

Co-authored-by: blob42 <spike@w530>
pull/285/head
blob42 1 year ago committed by GitHub
parent 76a0e7bdf4
commit 967de31b19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -160,7 +160,10 @@ return {
if not success then
-- can be noisy for things that run often (e.g. diagnostics), but can
-- be useful for things that run on demand (e.g. formatting)
vim.notify('go test failed: ' .. tostring(stderr), vim.lsp.log_levels.WARN)
vim.schedule_wrap(function()
vim.notify('go test failed: ' .. tostring(stderr), vim.lsp.log_levels.WARN)
end)
end
return true
end,

Loading…
Cancel
Save