refactor: reduce redundant function declarations

This commit is contained in:
Marc Jakobi
2024-08-28 15:19:33 +02:00
parent 129c796f72
commit 38befb0fc8
3 changed files with 3 additions and 12 deletions
+1 -4
View File
@@ -18,10 +18,7 @@ function M.lookup(name)
return state.lookup_plugin(name)
end
---@param name string
function M.del(name)
state.del(name)
end
M.del = state.del
---@param name string
local function on_colorscheme(name)
+1 -4
View File
@@ -176,9 +176,6 @@ function M.add(plugin)
end)
end
---@param name string
function M.del(name)
state.del(name)
end
M.del = state.del
return M
+1 -4
View File
@@ -150,9 +150,6 @@ function M.add(plugin)
end)
end
---@param name string
function M.del(name)
state.del(name)
end
M.del = state.del
return M