Real-time diagnostics and live preview with weavon lsp

Weavon ships a native Language Server Protocol server and hot-reload browser preview for Markdown and technical docs with diagnostics, outline, hover, completion, and formatting.

Eight editor features from one binary

  • Live accessibility and DocOps diagnostics as you type
  • Document symbol outline across headings and sections
  • Go-to-definition for labels, citations, and includes
  • Find references across cross-references and anchors
  • Hover previews for citation keys and reference links
  • Completions for citations, cross-refs, and extensions
  • AST-safe document formatting and quick fixes
  • Integrated live preview (weavon lsp --preview)

Hot-reload preview for HTML, slides, and PDF

Run weavon preview standalone or pass --preview to weavon lsp. Every save of the file or an x_include dependency updates the browser tab automatically.

weavon preview paper.md --format html --open
weavon preview deck.md --format slides --port 4000
weavon lsp --preview --format pdf

Known limits for LSP and preview

  • weavon lsp provides document structure, citation, cross-reference, and lint intelligence rather than programming-language type checking inside fenced code blocks.
  • PDF preview relies on your browser's PDF viewer or embedded PDF rendering.

Enable weavon lsp and preview

  1. Start hot-reload preview

    Open a local live-reloading browser view for any Markdown, LaTeX, or Org document.

    weavon preview README.md --open
  2. Start the LSP server

    Point your editor LSP client at weavon lsp --stdio.

    weavon lsp --stdio
  3. Combine LSP with live preview

    Pass --preview so editor edits stream straight to a browser preview.

    weavon lsp --preview --format html

Common questions

What does weavon lsp provide inside an editor?

weavon lsp provides live diagnostics, document outline, definitions, references, hover, completion, AST-safe formatting, and quick fixes over stdio.

Which preview formats does weavon preview support?

Pass --format html, --format slides, or --format pdf to weavon preview or weavon lsp --preview.

Does live preview track included files?

Yes. Changes to the root document or any file pulled in via x_include trigger an automatic reload.

Does weavon lsp work with Neovim and VS Code?

Yes. Any editor supporting standard Language Server Protocol over stdio can run weavon lsp --stdio.