mirror of
https://github.com/nathom/streamrip.git
synced 2024-09-18 18:58:46 -04:00
Use default launcher if vim not found (#559)
This commit is contained in:
parent
4c210b9e52
commit
8bc87a4b74
1 changed files with 4 additions and 1 deletions
|
@ -222,8 +222,11 @@ def config_open(ctx, vim):
|
|||
if vim:
|
||||
if shutil.which("nvim") is not None:
|
||||
subprocess.run(["nvim", config_path])
|
||||
else:
|
||||
elif shutil.which("vim") is not None:
|
||||
subprocess.run(["vim", config_path])
|
||||
else:
|
||||
logger.error("Could not find nvim or vim. Using default launcher.")
|
||||
click.launch(config_path)
|
||||
else:
|
||||
click.launch(config_path)
|
||||
|
||||
|
|
Loading…
Reference in a new issue