From 9d7410b725b6f60099aaeaf26b2e28e22af8bb19 Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 17 Sep 2024 19:48:53 +0200 Subject: [PATCH] fix: hook back logger --- lua/codemp/init.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/codemp/init.lua b/lua/codemp/init.lua index d2c10cd..8e38257 100644 --- a/lua/codemp/init.lua +++ b/lua/codemp/init.lua @@ -33,10 +33,9 @@ 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 if CODEMP.native == nil then print(" !! could not load native bindings, try reloading") + return CODEMP end - --CODEMP.native.logger(function (msg) - -- vim.schedule(function () print(msg) end) - --end, true) + CODEMP.native.logger(print, CODEMP.config.debug) end if CODEMP.rt == nil then