Wed, 25 Sep 2024 15:03:13 -0500
No LSP autostart when read-only
I think nvim actually threw out 'view' argc detection, I just use -R and alias
view to it.
756 | 1 | #!/bin/sh |
2 | set -eu | |
3 | ||
4 | cd $(hg root) | |
5 | ||
6 | SOURCES="${@:-$(hg stat -Aqn -I 'bin/*')}" | |
7 | MAN1=".man/man1" | |
8 | ||
9 | mkdir -p $MAN1 || true | |
10 | ||
11 | for SRC in $(grep -El '^=(head|cut)' $SOURCES); do | |
12 | DST="${MAN1}/$(basename $SRC).1" | |
13 | if [ ! -f $DST ] || [ "$SRC" -nt "$SRC" ]; then | |
14 | pod2man -v --errors=stderr "$SRC" "$DST" | |
15 | fi | |
16 | done |