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.
969 | 1 | warn() { echo "$*" >&2; } |
2 | die() { warn "$*"; exit 1; } | |
3 | ||
4 | clone_or_pull() { | |
5 | if ! [ -d $2 ]; then | |
6 | git clone --single-branch --depth 1 "$1" $2 | |
7 | else | |
8 | echo "$2:" | |
9 | git -C "$2" pull | |
10 | fi | |
11 | } |