You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
316 B
Lua
21 lines
316 B
Lua
2 years ago
|
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
|