From 8dd48a11b503d1df2a6c22b05fe41f7b0f941601 Mon Sep 17 00:00:00 2001 From: John Grib Date: Sat, 25 Feb 2023 23:25:50 +0900 Subject: [PATCH] Fix using deprecated NVIM_LISTEN_ADDRESS --- plugin/init.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/init.py b/plugin/init.py index aeacc24..e0f9a43 100644 --- a/plugin/init.py +++ b/plugin/init.py @@ -64,7 +64,11 @@ def init(): # Use PID as the file name pid = vim.funcs.getpid() + # NVIM_LISTEN_ADDRESS is deprecated : https://neovim.io/doc/user/deprecated.html addr = os.getenv("NVIM_LISTEN_ADDRESS") + if addr is None: + addr = os.getenv("NVIM") + version = vim.vars['comrade_version'] cwd = os.getcwd() with open(os.path.join(CONFIG_DIR, f"{pid}"), "w") as pid_file: