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:
parent
318f33abd8
commit
5b1cd8ee03
5
nvr
5
nvr
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user