mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 17:28:57 +02:00
chore: remove unused upvalue function (#823)
This commit is contained in:
parent
877e63ca8e
commit
d35d982984
1 changed files with 0 additions and 14 deletions
|
@ -27,20 +27,6 @@ function M.fg(name)
|
||||||
return fg and { fg = string.format("#%06x", fg) }
|
return fg and { fg = string.format("#%06x", fg) }
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.get_upvalue(func, name)
|
|
||||||
local i = 1
|
|
||||||
while true do
|
|
||||||
local n, v = debug.getupvalue(func, i)
|
|
||||||
if not n then
|
|
||||||
break
|
|
||||||
end
|
|
||||||
if n == name then
|
|
||||||
return v
|
|
||||||
end
|
|
||||||
i = i + 1
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
---@param fn fun()
|
---@param fn fun()
|
||||||
function M.on_very_lazy(fn)
|
function M.on_very_lazy(fn)
|
||||||
vim.api.nvim_create_autocmd("User", {
|
vim.api.nvim_create_autocmd("User", {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue