-
Notifications
You must be signed in to change notification settings - Fork 205
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
feature request: semantic highlighting (textDocument_semanticTokens) #33
Comments
Neovim recently merged support for this as well: neovim/neovim#21100 |
Kate also supports it. |
Unfortunately we don't have the bandwidth to work on this at the moment. But pull requests are always welcomed. |
Okey, a simple way seems like not work python-rope/rope#659 |
I think your best bet would be using Treesiter, which has the right infrastructure for that. |
Yeah, I am looking into it, but it's little bit overkill. It will be perfect for finding a native python solution. |
There is a plugin for neovim that is based on python and is very reliable and fast imo: https://github.com/numirias/semshi . This could be a starting point to port over the functionality to python-lsp |
Hi, has anyone investigated this further? Semantic highlighting makes programming much easier for me so I'm interested in this. I wouldn't mind helping out implementing it either! Just wondering if there's any up-to-date info regarding this, if anyone else has tried but got stuck or something like that? |
I just estimated the time and technology. It will be good to work on but I am not sure about the time next few months. |
As I know @asahilina also uses Kate for Python, maybe she can help us with motivation? |
It looks like there is a draft PR for the jedi-lsp for it: pappasam/jedi-language-server#231 so I guess it would be possible to do so with jedi alone. But one would need to look into how it behaves when there is syntax error etc. |
We need this feature, too. |
Hi! I'm interested in implementing this. I've made a fork here and added the boilerplate setup by copying from some the other capabilities like |
Nevermind I figured it out—just had to reinstall the project into the virtual environment to register the new plugin. |
I have a fairly basic starting point here: #533. |
Feature request to support textDocument_semanticTokens, now part of official LSP standard:
https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_semanticTokens
Personally I would use this with vim-lsp which has implemented support for it.
The text was updated successfully, but these errors were encountered: