It is useful if you write mpv scripts with the language server because you can auto-complete APIs provided by mpv or read the docs immediately by hovering, Here is the showcase:
If you are interested, I could write a more accurate script or github workflow using tree-sitter or python packages to generate it automated in this repository.
Alternative behavior of the wanted feature
Provide these types in another repository.
Write annotations directly and generate the .rst file from it.
Expected behavior of the wanted feature
There is lua language server that provides a type annotation system called luacats.
I have generated it from the document myself before using some simple regex, see https://github.com/ofseed/mpv/blob/main/types/mp.lua.
It is useful if you write mpv scripts with the language server because you can auto-complete APIs provided by mpv or read the docs immediately by hovering, Here is the showcase:
If you are interested, I could write a more accurate script or github workflow using tree-sitter or python packages to generate it automated in this repository.
Alternative behavior of the wanted feature
.rst
file from it.Log File
No response
Sample Files
No response