From: lnc3l0t <lnk3@protonmail.com>
Return the state after toggle_inlay_hints has been called, useful for attaching callbacks to the toggle behaviour.
For example enable/disable autocmds when toggling or untoggling.
---
lua/clangd_extensions/inlay_hints.lua | 1 +
1 file changed, 1 insertion(+)
diff --git a/lua/clangd_extensions/inlay_hints.lua b/lua/clangd_extensions/inlay_hints.lua
index 2d03fe4..f8afd1a 100644
--- a/lua/clangd_extensions/inlay_hints.lua+++ b/lua/clangd_extensions/inlay_hints.lua
@@ -272,6 +272,7 @@ function M.toggle_inlay_hints()
M.set_inlay_hints()
end
enabled = not enabled
+ return enabledend
function M.disable_inlay_hints()
--
2.43.0