feat(mini.comment): added ts-context-commentstring back and made it work with mini.comment

This commit is contained in:
Folke Lemaitre 2023-05-23 08:41:44 +02:00
parent 7443effe26
commit 89db0157b1
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 23 additions and 0 deletions

View file

@ -27,6 +27,20 @@ function M.fg(name)
return fg and { fg = string.format("#%06x", fg) }
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()
function M.on_very_lazy(fn)
vim.api.nvim_create_autocmd("User", {