mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:30:05 +08:00
test(nvim): fix nvim test in linux
This commit is contained in:
parent
87d8ad1fd9
commit
100aa31e52
11
.github/workflows/check.yml
vendored
11
.github/workflows/check.yml
vendored
@ -92,14 +92,15 @@ jobs:
|
|||||||
if [ "$VIM_BIN" = "nvim" ]; then
|
if [ "$VIM_BIN" = "nvim" ]; then
|
||||||
export PATH="${DEPS}/_neovim/${VIM_TAG}/bin:${PATH}"
|
export PATH="${DEPS}/_neovim/${VIM_TAG}/bin:${PATH}"
|
||||||
export VIM="${DEPS}/_neovim/${VIM_TAG}/share/nvim/runtime"
|
export VIM="${DEPS}/_neovim/${VIM_TAG}/share/nvim/runtime"
|
||||||
|
export VIM_Es="--headless"
|
||||||
else
|
else
|
||||||
export PATH="${DEPS}/_vim/${VIM_TAG}/bin:${PATH}"
|
export PATH="${DEPS}/_vim/${VIM_TAG}/bin:${PATH}"
|
||||||
export VIM="${DEPS}/_vim/${VIM_TAG}/share/vim"
|
export VIM="${DEPS}/_vim/${VIM_TAG}/share/vim"
|
||||||
fi
|
if [ "$DISABLE_ES" = "true" ]; then
|
||||||
if [ "$DISABLE_ES" = "true" ]; then
|
export VIM_Es=""
|
||||||
export VIM_Es=""
|
else
|
||||||
else
|
export VIM_Es="-Es"
|
||||||
export VIM_Es="-Es"
|
fi
|
||||||
fi
|
fi
|
||||||
export PATH="/home/runner/.local/bin:${PATH}"
|
export PATH="/home/runner/.local/bin:${PATH}"
|
||||||
echo "\$PATH: \"${PATH}\""
|
echo "\$PATH: \"${PATH}\""
|
||||||
|
@ -8,11 +8,13 @@ Execute ( SpaceVim plugin: flygrep ):
|
|||||||
let g:_spacevim_input_timeout = 0
|
let g:_spacevim_input_timeout = 0
|
||||||
let lnr = 0
|
let lnr = 0
|
||||||
let current_line = line('.')
|
let current_line = line('.')
|
||||||
|
Log getline('.')
|
||||||
for line in readfile('Makefile')
|
for line in readfile('Makefile')
|
||||||
let lnr += 1
|
let lnr += 1
|
||||||
if line =~# 'COVIMERAGE'
|
if line =~# 'COVIMERAGE'
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
Log 'lnr is:' . lnr
|
||||||
AssertEqual lnr, current_line
|
AssertEqual lnr, current_line
|
||||||
unlet lnr line current_line
|
unlet lnr line current_line
|
||||||
|
Loading…
Reference in New Issue
Block a user