Skip to content

Commit

Permalink
feat!: Remove RELOAD function
Browse files Browse the repository at this point in the history
... not used and lazy can do this
  • Loading branch information
Allaman committed Jul 22, 2024
1 parent 739ccfd commit d47bdcf
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lua/utils/globals.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
local ok, plenary_reload = pcall(require, "plenary.reload")
if not ok then
RELOADER = require
else
RELOADER = plenary_reload.reload_module
end

RELOAD = function(...)
return RELOADER(...)
end

-- Reload a module
R = function(name)
RELOAD(name)
return require(name)
end

-- Print the string representation of a Lua table
P = function(v)
vim.print(vim.inspect(v))
Expand Down

0 comments on commit d47bdcf

Please sign in to comment.