9 lines
167 B
Bash
Executable file
9 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
|