Open smemsh opened 3 years ago
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 https://github.com/python-rope/rope/discussions/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.
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: https://github.com/pappasam/jedi-language-server/pull/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 hover
. However I can't seem to get the plugin system to call the main entrypoint. Hoping one of the core maintainers can help me finish hooking this up so I can get to the actual implementation! Can you offer any guidance @ccordoba12? Happy to provide any more details. Here's the commit with the hookups I could figure out so far.
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
hover
. However I can't seem to get the plugin system to call the main entrypoint. Hoping one of the core maintainers can help me finish hooking this up so I can get to the actual implementation! Can you offer any guidance @ccordoba12? Happy to provide any more details. Here's the commit with the hookups I could figure out so far.
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: https://github.com/python-lsp/python-lsp-server/pull/533. Surely some improvements can be made, but this already improves my syntax highlighting experience significantly!
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.