fix: allow setting debug file

This commit is contained in:
əlemi 2024-09-17 23:49:58 +02:00
parent 90d5a57037
commit 6b3e4a3faa
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -26,7 +26,7 @@ if CODEMP == nil then
setup = function (opts) setup = function (opts)
CODEMP.config = vim.tbl_extend('force', CODEMP.config, opts) CODEMP.config = vim.tbl_extend('force', CODEMP.config, opts)
-- register logger -- register logger
CODEMP.native.setup_tracing(CODEMP.config.print, CODEMP.config.debug) CODEMP.native.setup_tracing(CODEMP.config.debug_file or print, CODEMP.config.debug)
-- start background runtime, with stop event -- start background runtime, with stop event
CODEMP.rt = CODEMP.native.setup_driver() -- spawn thread to drive tokio runtime CODEMP.rt = CODEMP.native.setup_driver() -- spawn thread to drive tokio runtime
vim.api.nvim_create_autocmd( vim.api.nvim_create_autocmd(