fix: last native pending calls

This commit is contained in:
əlemi 2024-09-06 03:34:08 +02:00
parent d8f4ed98d9
commit 76f7dc9261
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -18,7 +18,7 @@ if CODEMP == nil then
if CODEMP.native == nil then
CODEMP.native = require('codemp.loader').load() -- make sure we can load the native library correctly, otherwise no point going forward
--native.logger(function (msg)
--CODEMP.native.logger(function (msg)
-- vim.schedule(function () print(msg) end)
--end, true)
end
@ -28,7 +28,7 @@ if CODEMP == nil then
end
if CODEMP.rt == nil then
CODEMP.rt = native.spawn_runtime_driver() -- spawn thread to drive tokio runtime
CODEMP.rt = CODEMP.native.spawn_runtime_driver() -- spawn thread to drive tokio runtime
vim.api.nvim_create_autocmd(
{"ExitPre"},
{