-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print context using treesitter/lsp #54
Comments
Thanks, this is a really interesting idea! I won't be able to look at this this week but will definitely pop this on the backlog for action. |
similar issue: #112 |
Support different external plugins for doing this e.g. navic: https://github.com/PatschD/zippy.nvim |
So I've looked at
I'm keeping this issue open, but right now I would like a simple way to do this via TS, or it's just adding too much complexity to this simple tool. |
Consider doing something really crude using indentation... |
OK, so indentation turns out not to be straightforward, as it's hard to account for blank lines in between blocks of code etc. |
Hey! Not sure if this will help, but https://github.com/ThePrimeagen/refactoring.nvim also has some logic for detecting the class / function (at least it works for TypeScript). Should be here in the debug folder. |
Thanks, I'll take a look when I get a moment! |
Similar to this old plugin: https://github.com/polarmutex/contextprint.nvim
You might be interested in https://github.com/SmiteshP/nvim-navic to do the work of calculating the context from lsp
The text was updated successfully, but these errors were encountered: