Skip to content

Instantly share code, notes, and snippets.

@yskszk63
Created May 21, 2024 16:08
Show Gist options
  • Save yskszk63/a60515ee26e030d72c1e66418f5f3eab to your computer and use it in GitHub Desktop.
Save yskszk63/a60515ee26e030d72c1e66418f5f3eab to your computer and use it in GitHub Desktop.
ttyd でブラウザに Neovim を映す

ttyd でブラウザに Neovim を映す

目的は、Web会議でのデモ。他のWebページに行き来しながらデモをしたい。

1. headless で Neovim を起動

nvim --headless --listen /tmp/nvim

2. 操作用の Neovim を起動

nvim --remote-ui --server /tmp/nvim

3. ttyd で映す

ttyd -t fontSize=24 -t fontFamily='PlemolJP Console NF' -B nvim --remote-ui --server /tmp/nvim

Tip

フォントはブラウザから見えるもの

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment