darkrc/bin/rvim

10 lines
167 B
Bash
Executable File

#!/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