I hereby claim:
- I am livexia on github.
- I am livexia (https://keybase.io/livexia) on keybase.
- I have a public key ASBdd0H027UqH7ciiB8KV34g9s_y_xjAcAdotSHh1aRbqQo
To claim this, I am signing this object:
| -- @USAGE: | |
| -- local foo = safe_require('foo') | |
| -- if not foo then return end | |
| _G.safe_require = function(module_name) | |
| local package_exists, module = pcall(require, module_name) | |
| if not package_exists then | |
| vim.defer_fn(function() | |
| vim.schedule(function() | |
| vim.notify('Could not load module: ' .. module_name, 'error', { title = 'Module Not Found' }) | |
| end) |
I hereby claim:
To claim this, I am signing this object: