Verified Commit 18a03462 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Update neovim remote EDITOR script

parent 3c2afa2f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -7,8 +7,14 @@ for ed in nvim vim; do
	has $ed && break
done

if [ -n "${NVIM_LISTEN_ADDRESS-}" ] || [ -n "${NVIM-}" ]; then
	in_nvim=true
else
	in_nvim=false
fi

# Outside of an nvim context use vim even if nvr is available
if [ -n "${NVIM_LISTEN_ADDRESS-}" ] && has nvr; then
if $in_nvim && has nvr; then
	test -n "${FROM_ALIAS-}" &&
		set nvr -s --remote "$@" ||
		set nvr -s --remote-tab-wait \