Skip to content

feat(lsp): Add document symbols provider#8

Merged
mhiro2 merged 3 commits intomainfrom
feat/lsp-symbols-document
Feb 15, 2026
Merged

feat(lsp): Add document symbols provider#8
mhiro2 merged 3 commits intomainfrom
feat/lsp-symbols-document

Conversation

@mhiro2
Copy link
Copy Markdown
Owner

@mhiro2 mhiro2 commented Feb 15, 2026

Summary

  • Add lsp.symbols_document provider to display document symbols in the current buffer
  • Support both DocumentSymbol (hierarchical) and SymbolInformation (flat) LSP response formats

Changes

  • b68ad2a : feat(lsp): add document symbols provider
    • Add document_symbol_result_mapper to handle LSP textDocument/documentSymbol responses
    • Add append_document_symbol helper for recursive symbol tree flattening
    • Extend create_provider to accept custom result_mapper parameter
    • Support both DocumentSymbol (with range/selectionRange) and SymbolInformation (with location)
      formats
  • f5028c8 : test(lsp): add symbols document coverage
    • Test hierarchical DocumentSymbol parsing with nested children
    • Test SymbolInformation format handling
    • Test warning when no LSP clients attached
    • Add same-location filter test for lsp.symbols_document
  • 280013d : docs(lsp): document symbols provider usage
    • Add lsp.symbols_document to provider list in help documentation
    • Update README example and provider list

@mhiro2 mhiro2 self-assigned this Feb 15, 2026
@mhiro2 mhiro2 added the enhancement New feature or request label Feb 15, 2026
@mhiro2 mhiro2 merged commit acafa3b into main Feb 15, 2026
3 checks passed
@mhiro2 mhiro2 deleted the feat/lsp-symbols-document branch February 15, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant