opencode
opencode copied to clipboard
feat: add texlab language server and latexindent formatter
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 serverpackages/opencode/src/format/formatter.ts- Added latexindent formatter
Tests Run
bun run typecheck- Passed (opencode package)bun test- 255 passed, 1 skipped, 0 failedbun dev --help- Verified code compiles and runs- Verified asset naming against actual texlab GitHub releases (confirmed correct):
texlab-aarch64-macos.tar.gztexlab-x86_64-macos.tar.gztexlab-x86_64-linux.tar.gztexlab-x86_64-windows.zip
/review
lgtm