dotfiles/.config/nvim/lua/core/globals.lua

12 lines
231 B
Lua
Raw Normal View History

_G.require_mod = function(mod)
2023-03-12 16:09:11 -04:00
local ok, result = pcall(require, mod)
if not ok then
vim.notify("Failed to load " .. mod, "error")
-- vim.pretty_print({plugin = mod, error = result})
return nil
end
return result
end