Open leonqadirie opened 1 month ago
Oooh very nice! Sounds like it should be straightforward to add too.
Working on it!
By the way, it seems that Zed already supports this feature for Gleam out of the box, but this will still matter for VSCode and (potentially) other editors.
Very nice, thank you!
Zed added support in this PR, without diving into the code I suspect they use Gleam's tree-sitter to implement the symbol view. It definitely matters for other editors!
Suggestion: Add LSP support for Document Symbols.
From the LSP spec:
They provide a (subjectively) great way to quickly conceptualise/grasp and navigate code in editors that support them. An example of a buffer's Document Symbols in Rust is attached.