summaryrefslogtreecommitdiff
path: root/run_vim.py
diff options
context:
space:
mode:
Diffstat (limited to 'run_vim.py')
-rwxr-xr-xrun_vim.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/run_vim.py b/run_vim.py
index 894b5e7..31366c1 100755
--- a/run_vim.py
+++ b/run_vim.py
@@ -19,7 +19,9 @@ if os.environ["TERM"] in ["alactritty", "xterm-256color"]:
# For now, treat all arguments that don't start with - or + as filenames. This
# is good enough to recognize '-f' and `+11`, which is all this script really
# needs right now.
-filenames = [arg for arg in sys.argv[1:] if not arg[0] in ['-', '+']]
+filenames = [
+ os.path.abspath(arg) for arg in sys.argv[1:] if not arg[0] in ['-', '+']
+]
try:
nvim_socket = os.environ["NVIM"]