Skip to content

Commit 1ae4f73

Browse files
committed
Launch using cmd to change command.
This uses neovide cmd option to cd before running neovim rather than relying on cd first. There are some contexts in which that was unreliable. For example, when running via Finder or Raycast.
1 parent 4824da6 commit 1ae4f73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Contents/Resources/neovide-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ if [ -e "$socket_path" ] && nvim --server "$socket_path" --remote-expr '1' >/dev
4646
nvim --server "$socket_path" --remote-send "<C-\\><C-N>:cd $target<CR>:NeovideFocus<CR>"
4747
fi
4848
else
49-
(cd "$working_dir" && NVIM_LISTEN_ADDRESS="$socket_path" neovide) &
49+
NVIM_LISTEN_ADDRESS="$socket_path" neovide -- --cmd "cd $working_dir" &
5050
fi

0 commit comments

Comments
 (0)