Skip to content

Commit

Permalink
Set wrap when launching nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpaz committed Aug 19, 2024
1 parent 3cce2d7 commit 88cf3de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion catalog/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ def query_command(
with tempfile.NamedTemporaryFile(mode="w", delete=False) as temp_file:
temp_file.write(result)
temp_file_path = temp_file.name
os.system(f"nvim {temp_file_path} -c 'setfiletype markdown'")
os.system(
f"nvim {temp_file_path} -c 'setfiletype markdown' -c 'set wrap'"
)
os.unlink(temp_file_path)
else:
click.echo("The 'nvim' option can only be used with string values.")
Expand Down

0 comments on commit 88cf3de

Please sign in to comment.