[PR #5251] feat: add texlab language server and latexindent formatter #11305

Closed
opened 2026-02-16 18:16:07 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5251

State: closed
Merged: Yes


Summary

Add LaTeX LSP support via TexLab language server.

Changes

  • Add TexLab LSP server with auto-download from GitHub releases
  • Add latexindent formatter for .tex files

Features

  • Code completion for commands, environments, citations, references
  • Hover documentation
  • Go-to-definition for labels and citations
  • Diagnostics via chktex (when installed)
  • BibTeX support (.bib files)

Files Modified

  • packages/opencode/src/lsp/server.ts - Added TexLab LSP server
  • packages/opencode/src/format/formatter.ts - Added latexindent formatter

Tests Run

  • bun run typecheck - Passed (opencode package)
  • bun test - 255 passed, 1 skipped, 0 failed
  • bun dev --help - Verified code compiles and runs
  • Verified asset naming against actual texlab GitHub releases (confirmed correct):
    • texlab-aarch64-macos.tar.gz
    • texlab-x86_64-macos.tar.gz
    • texlab-x86_64-linux.tar.gz
    • texlab-x86_64-windows.zip
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5251 **State:** closed **Merged:** Yes --- ## Summary Add LaTeX LSP support via TexLab language server. ## Changes - Add TexLab LSP server with auto-download from GitHub releases - Add latexindent formatter for .tex files ## Features - Code completion for commands, environments, citations, references - Hover documentation - Go-to-definition for labels and citations - Diagnostics via chktex (when installed) - BibTeX support (.bib files) ## Files Modified - `packages/opencode/src/lsp/server.ts` - Added TexLab LSP server - `packages/opencode/src/format/formatter.ts` - Added latexindent formatter ## Tests Run - `bun run typecheck` - Passed (opencode package) - `bun test` - 255 passed, 1 skipped, 0 failed - `bun dev --help` - Verified code compiles and runs - Verified asset naming against actual texlab GitHub releases (confirmed correct): - `texlab-aarch64-macos.tar.gz` - `texlab-x86_64-macos.tar.gz` - `texlab-x86_64-linux.tar.gz` - `texlab-x86_64-windows.zip`
yindo added the pull-request label 2026-02-16 18:16:07 -05:00
yindo closed this issue 2026-02-16 18:16:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11305