my-nvim-lua/lua/spike/globals.lua
2022-09-27 21:40:57 +02:00

21 lines
316 B
Lua

local ok, plenary_reload = pcall(require, "plenary.reload")
if not ok then
reloader = require
else
reloader = plenary_reload.reload_module
end
P = function(v)
print(vim.inspect(v))
return v
end
RELOAD = function(...)
return reloader(...)
end
R = function(name)
RELOAD(name)
return require(name)
end