Skip to content

Commit

Permalink
docs(README): simplify nvim example
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcur committed Jun 29, 2024
1 parent cd3ee63 commit 1b7a664
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions media/nvim.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions scripts/examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export PATH="$PWD/target/release":$PATH
sleep 0.05
) | termsnap -o ./media/tty.svg -l 12 -c 60 -- bash --noprofile --rcfile "$PWD/scripts/inputrc"

termsnap -o ./media/nvim.svg -l 12 -c 60 -- nvim --clean \
-c "set number" \
-c "syntax enable" \
-c "lua vim.defer_fn(function() vim.cmd('q') end, 0)" \
./scripts/example.py
termsnap -o ./media/nvim.svg -l 12 -c 60 -- nvim --clean ./scripts/example.py <<EOF
:set number
:syntax enable
:q
EOF

0 comments on commit 1b7a664

Please sign in to comment.