Add ability to show floating treesitter context using indentscope #1608
maskudo
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Thanks for sharing! I converted this into "Show and tell" discussion as this functionality is definitely out of scope for 'mini.indentscope'. But something similar yet more general can be a topic of one of the future planned modules. The code has one major issue: it creates new buffer and floating window on every
Or another suggestion is to use 'winbar' option in a similar fashion to set scope's top line, just without floating window. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Contributing guidelines
Module(s)
mini.indentscope
Description
It is easy to lose track of what function you are on in long functions. By leveraging the get_scope function, I was able to show the current scope in a floating line like nvim_treesitter_context with a few lines of code.
With a few tweaks, it could be a useful addition to the indentscope module or an extra.
Beta Was this translation helpful? Give feedback.
All reactions