Then, I would probably try to implement a python-lsp plugin in python, or do you have a better idea?
I'd suggest having a look at `plugins/demopluginext.c` that this PR adds and reimplementing it in Python. Then you can add the additional functions from this interface (for @elextr - pointers to functions assigned to struct members ;-). You don't really have to properly implement them, just add some `print()`s to make sure these functions are called and that the parameters passed to these functions can be accessed.
I don' think this needs to block this PR, if you're OK that the API may need to be changed after the fact.
I would actually prefer that even if it means some additional modifications later.
@b4n How does the PR look to you? OK to merge?