mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2025-04-08 11:31:32 +02:00
fix: load codemp native during setup
This commit is contained in:
parent
248b379f35
commit
f031ee8d5b
1 changed files with 8 additions and 8 deletions
|
@ -28,6 +28,14 @@ if CODEMP == nil then
|
|||
password = "",
|
||||
},
|
||||
setup = function (opts)
|
||||
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
|
||||
end
|
||||
|
||||
CODEMP.config = vim.tbl_extend('force', CODEMP.config, opts)
|
||||
-- register logger
|
||||
CODEMP.native.setup_tracing(CODEMP.config.debug_file or print, CODEMP.config.debug)
|
||||
|
@ -70,12 +78,4 @@ if CODEMP == nil then
|
|||
}
|
||||
end
|
||||
|
||||
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
|
||||
end
|
||||
|
||||
return CODEMP
|
||||
|
|
Loading…
Add table
Reference in a new issue