forked from nat/natalieee.net
add initial content (home, about-{natalie,site}, its-laptop)
This commit is contained in:
7
www/src/scripts/syntax-hl
Executable file
7
www/src/scripts/syntax-hl
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
tmpfile=$(mktemp)
|
||||
|
||||
timeout 0.6s nvim "$1" -c "autocmd LspAttach * execute 'TOhtml | w! ${tmpfile} | qa!'" >/dev/null || nvim "$1" -c "TOhtml | w! ${tmpfile} | qa!" >/dev/null
|
||||
|
||||
cat "${tmpfile}" | pup --pre 'style, pre' | sed '/^$/d'
|
||||
|
Reference in New Issue
Block a user