[FR] Definition previewing and symbol renaming support
- [x] I have searched the issues of this repo and believe that this is not a duplicate.
- [x] I have searched the discussions and believe that my question is not already covered.
Feature Request
The typst-lsp vscode extension doesn't provide hover previewing and symbol renaming, after the documentation symbols and outline is working fine.
Some features can be considered are listed below:
- Jump to definition and jump to reference
- Rename symbol document / workspace wide
- Parameters hinting (like clangd/pylsp language server) when calling a function
- Preview rendering by passing
lorem()to thecontenttyped parameters
- Preview rendering by passing
The parameters hinting means something similar to the clangd or pylsp language server and it hints the parameters and types of a function defined by #let or a pre-defined content block. For further enhancement, doxygen or similiar documentation purposed comments can also be renderered like the existing language servers.
In the quick suggestions, the members/symbols corresponding to the types of the arguments might be placed at the higher priority. In the C++ language server examples below, the randomize_matrix() expects an struct, thus the struct m1 and m2 are preposed.
I was about to open an issue (not as complete as this one tho)
seems to be included in this issue but came here specifically to suggest F2 for reference renaming (of figures, equations, sections, ...)