Limbo-137/dsh-typst-preview0

dsh-typst-preview

在右侧边栏提供实时 Typst 预览的插件,由本地 tinymist 服务渲染并支持源文件语义高亮。

AI 分析

核心用途是为 Typst 文档排版提供即时渲染预览。适合经常使用 Typst 编写学术论文、报告,并需要 AI 辅助修改且实时查看排版效果的用户。需要本地安装 tinymist。

包名
dsh-typst-preview
版本
0.3.2
许可证
MIT
最近更新
2026年9月12日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Limbo-137/dsh-typst-preview

Configuration

Optional, on the plugin's row in the profile's cordis.patch.yml (or a home patch):

- id: typst-preview
  config:
    tinymistPath: tinymist          # default 'tinymist' (PATH lookup, then the fallback dirs)
    extraArgs: []                   # extra argv for `tinymist preview`, e.g. ['--font-path', '/path/to/fonts']
    maxInstances: 4                 # live preview processes, LRU-evicted, default 4
    readyTimeoutMs: 20000           # first page deadline, default 20s
    idleTimeoutMs: 1800000          # idle reaper, default 30min
    highlight: true                 # highlight the source face; false = the paged plain-text reader
    highlightLines: 800             # lines per highlighted page, default 800
    highlightMaxBytes: 4194304      # files above this stay plain, default 4 MiB
    highlightIdleTimeoutMs: 600000  # idle reaper for highlighting language servers, default 10min
    highlightMaxServers: 2          # highlighting language servers kept at once, one per project root

extraArgs is shared: they are passed to tinymist preview and to tinymist lsp alike, so a --font-path for a document that needs it applies to both faces.