aboutsummarylogtreecommitdiffstats
path: root/nvim-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'nvim-wrapper')
-rwxr-xr-xnvim-wrapper4
1 files changed, 4 insertions, 0 deletions
diff --git a/nvim-wrapper b/nvim-wrapper
index 327803f25a3b..36fe69c6c3fb 100755
--- a/nvim-wrapper
+++ b/nvim-wrapper
@@ -58,6 +58,10 @@ def processArgv():
else:
nvimOptions.append(arg)
+ # launch the wrapper in the current directory by default
+ if not any([o.startswith('--working-directory') for o in gtermOptions]):
+ gtermOptions.append('--working-directory='+os.path.abspath(os.curdir))
+
return {
'gterm': gtermOptions,
'nvim': nvimOptions