From 7d01dd3f9d97d55dcc7f8f741d6a1144c429ec6b Mon Sep 17 00:00:00 2001 From: Cyril Mizzi Date: Fri, 6 Oct 2017 13:55:39 +0200 Subject: [PATCH] updates `cwd` with the `g:phpactorInitialCwd` As PHPActor now handles a `--working-dir` option, we have to specify the initial working directory instead of Neovim CWD --- pythonx/cm_sources/phpactor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonx/cm_sources/phpactor.py b/pythonx/cm_sources/phpactor.py index 9f30373..dd9bc15 100644 --- a/pythonx/cm_sources/phpactor.py +++ b/pythonx/cm_sources/phpactor.py @@ -51,7 +51,7 @@ def cm_refresh(self, info, ctx, *args): stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, - cwd=self.nvim.eval('getcwd()')) + cwd=self.nvim.eval('g:phpactorInitialCwd').splitlines()[0]) result, errs = proc.communicate(src, timeout=30)