edit-helper: do not spawn nvim

This commit is contained in:
Daniel Lundin 2023-04-27 15:59:43 +02:00
parent 037dc7029a
commit e9e059660c

View file

@ -20,10 +20,6 @@ function _nvim_setenv() {
nvim --server "$_nvim_socket" --remote-expr "execute(\"let \$${1} = \\\"${2}\\\"\")" 2>&1 >/dev/null
}
nvim --server "$_nvim_socket" --remote-expr "42" 2>&1 >/dev/null ||
(rm -f "$_nvim_socket" && wezterm cli spawn --cwd "${PWD}" nvim --listen "$_nvim_socket" && sleep 0.5)
_nvim_setenv BUILD_COMMAND "$BUILD_COMMAND"
_nvim_setenv GOPACKAGESDRIVER "$GOPACKAGESDRIVER"
_nvim_setenv GOFLAGS "$GOFLAGS"