return { --- safe version of `require`. --- if given module could not be found or some error occured during loading, the error is printed instead of thrown. ---@type function(string): table _ = function( mod ) local ok, loaded = pcall(require, mod) if not ok then vim.print('unable to load mod ' .. mod .. '!') vim.print(loaded) end return loaded end, }