~p00f/public-inbox

clangd_extensions.nvim: feat: return state after v1 PROPOSED

~lnk3: 1
 feat: return state after

 1 files changed, 1 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~p00f/public-inbox/patches/51301/mbox | git am -3
Learn more about email & git

[PATCH clangd_extensions.nvim] feat: return state after Export this patch

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 enabled
end

function M.disable_inlay_hints()
-- 
2.43.0




~lnk3 <lnk3@git.sr.ht> writes: