CodeSnap.nvim use FFI as approach of load rust module into Lua, the Codesnap.nvim would compile Rust lib as a middle link file named generator.so which expose interface same with C Lua module.
But If users never installed CodeSnap.nvim before, the generator.so does not exist when users first installed, so this PR change the import way of codesnap.so to dynamic import to avoid "Module not found" error
CodeSnap.nvim use FFI as approach of load rust module into Lua, the Codesnap.nvim would compile Rust lib as a middle link file named generator.so which expose interface same with C Lua module.
But If users never installed CodeSnap.nvim before, the generator.so does not exist when users first installed, so this PR change the import way of codesnap.so to dynamic import to avoid "Module not found" error