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.
remotes/github/pr/1
Marco Hinz 9 years ago
parent 318f33abd8
commit 5b1cd8ee03

5
nvr

@ -145,9 +145,8 @@ def main():
elif type(result) is dict:
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.
if all(x is None for x in vars(args).values()):
run_nvim(unused)
print(*map(lambda x: 'Unknown argument: '+x, unused), sep='\n')
if __name__ == '__main__':
main()

Loading…
Cancel
Save