2
0
mirror of https://github.com/mhinz/neovim-remote synced 2024-11-11 13:10:34 +00:00

Ignore unknown arguments

nvr is not a real wrapper anymore, for simplicty reasons and because most
people probably didn't alias nvr to nvim anway. If that were the case, you'd
always load the python provider first, even if you not end up using it, which
leads to a certain delay.

nvim startup time is crucial.
This commit is contained in:
Marco Hinz 2015-12-16 16:05:52 +01:00
parent 318f33abd8
commit 5b1cd8ee03

5
nvr
View File

@ -145,9 +145,8 @@ def main():
elif type(result) is dict: elif type(result) is dict:
print({ (k.decode() if type(k) is bytes else k): v for (k,v) in result.items() }) print({ (k.decode() if type(k) is bytes else k): v for (k,v) in result.items() })
# If none of the wrapper arguments were given, fall back to normal nvim usage. print(*map(lambda x: 'Unknown argument: '+x, unused), sep='\n')
if all(x is None for x in vars(args).values()):
run_nvim(unused)
if __name__ == '__main__': if __name__ == '__main__':
main() main()