Skip to content

Conversation

@edlsh
Copy link
Contributor

@edlsh edlsh commented Dec 8, 2025

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

@rekram1-node
Copy link
Collaborator

/review

@github-actions
Copy link
Contributor

lgtm

@rekram1-node rekram1-node merged commit 8917a4c into anomalyco:dev Dec 13, 2025
3 of 4 checks passed
nalin-singh pushed a commit to nalin-singh/opencode that referenced this pull request Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants