Change command to run using $NVR_CMD

References https://github.com/mhinz/neovim-remote/issues/48
pull/51/head v1.7.3
Marco Hinz 7 years ago
parent 4e827d4d7d
commit 625b8ddf45
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

@ -75,9 +75,11 @@ class Neovim():
else:
os.environ['NVIM_LISTEN_ADDRESS'] = self.address
try:
os.execvpe('nvim', ['nvim'], os.environ)
args = os.environ.get('NVR_CMD')
args = args.split(' ') if args else ['nvim']
os.execvpe(args[0], args, os.environ)
except FileNotFoundError:
print("[!] Can't start new nvim process: 'nvim' is not in $PATH.")
print("[!] Can't start new nvim process: '{}' is not in $PATH.".format(args[0]))
sys.exit(1)
return False
@ -151,7 +153,9 @@ class Neovim():
$ nvr --servername {} file1 file2
$ nvr --servername 127.0.0.1:6789 file1 file2
(Use any of the --remote*silent options or -s to suppress this message.)
nvr is now starting a server on its own by running $NVR_CMD or 'nvim'.
Use -s to suppress this message.
[*] Starting new nvim process with address {}
""".format(o, o, o, o, self.address)))

@ -18,7 +18,7 @@ setup(
'console_scripts': ['nvr = nvr.nvr:main']
},
packages = ['nvr'],
version = '1.7.2',
version = '1.7.3',
license = 'MIT',
keywords = 'neovim nvim nvr remote helper',
classifiers = [

Loading…
Cancel
Save