darkrc/bin/rvim

10 lines
167 B
Text
Raw Normal View History

2022-09-01 10:59:14 +00:00
#!/bin/sh
sock="$(git rev-parse --show-toplevel)/nvim.sock"
if [ -S "$sock" ]
then
exec nvim --server "$sock" --remote-tab $@
else
exec nvim --listen "$sock" $@
fi