Skip to content

Commit ab7876f

Browse files
committed
fix(compa): check $NVIM for latest neovim
1 parent 6244d17 commit ab7876f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎autoload/floaterm/edita/neovim/client.vim‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
let s:repo = fnamemodify(expand('<sfile>'), ':p:h:h:h:h:h')
22

33
function! floaterm#edita#neovim#client#open() abort
4-
let server = $NVIM_LISTEN_ADDRESS
4+
let server = ($NVIM != '') ? $NVIM : $NVIM_LISTEN_ADDRESS
55
let mode = floaterm#edita#neovim#util#mode(server)
66
let ch = sockconnect(mode, server, { 'rpc': 1 })
77
let target = escape(fnamemodify(argv()[-1], ':p'), ' \')

‎bin/floaterm.cmd‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ REM Get absolute name
77
for /f "delims=" %%i in ("%1") do set "NAME=%%~fi"
88
REM echo fullpath: %NAME%
99

10-
if "%NVIM_LISTEN_ADDRESS%" == "" GOTO vim
11-
goto neovim
10+
IF "%NVIM_LISTEN_ADDRESS%" != "" GOTO neovim
11+
IF "%NVIM%" != "" GOTO neovim
12+
GOTO neovim
1213

1314
:vim
1415
if "%VIM_EXE%" == "" GOTO missing

0 commit comments

Comments
 (0)