feat(inlay_hints): add notification for toggling

This commit is contained in:
2024-04-24 11:01:11 +08:00 committed by GitHub
parent f086bcde25
commit 0c716fce4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,6 +69,12 @@ function M.inlay_hints(buf, value)
end end
ih.enable(value, { bufnr = buf }) ih.enable(value, { bufnr = buf })
end end
if value then
LazyVim.info("Enabled inlay_hints", { title = "inlay_hints" })
else
LazyVim.warn("Disabled inlay_hints", { title = "inlay_hints" })
end
end end
setmetatable(M, { setmetatable(M, {