mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 07:10:06 +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
|
||||
export PATH="${DEPS}/_neovim/${VIM_TAG}/bin:${PATH}"
|
||||
export VIM="${DEPS}/_neovim/${VIM_TAG}/share/nvim/runtime"
|
||||
export VIM_Es="--headless"
|
||||
else
|
||||
export PATH="${DEPS}/_vim/${VIM_TAG}/bin:${PATH}"
|
||||
export VIM="${DEPS}/_vim/${VIM_TAG}/share/vim"
|
||||
fi
|
||||
if [ "$DISABLE_ES" = "true" ]; then
|
||||
export VIM_Es=""
|
||||
else
|
||||
export VIM_Es="-Es"
|
||||
if [ "$DISABLE_ES" = "true" ]; then
|
||||
export VIM_Es=""
|
||||
else
|
||||
export VIM_Es="-Es"
|
||||
fi
|
||||
fi
|
||||
export PATH="/home/runner/.local/bin:${PATH}"
|
||||
echo "\$PATH: \"${PATH}\""
|
||||
|
@ -8,11 +8,13 @@ Execute ( SpaceVim plugin: flygrep ):
|
||||
let g:_spacevim_input_timeout = 0
|
||||
let lnr = 0
|
||||
let current_line = line('.')
|
||||
Log getline('.')
|
||||
for line in readfile('Makefile')
|
||||
let lnr += 1
|
||||
if line =~# 'COVIMERAGE'
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
Log 'lnr is:' . lnr
|
||||
AssertEqual lnr, current_line
|
||||
unlet lnr line current_line
|
||||
|
Loading…
Reference in New Issue
Block a user