neovim.tests.nvim_with_opt_plugin: fixed
once :Dashboard succeeded, the script would close neovim and thus never terminate. We instead check if the command ":Dashboard" exists.
This commit is contained in:
parent
568f71b9d4
commit
67f6f13c2e
1 changed files with 5 additions and 6 deletions
|
@ -260,13 +260,12 @@ rec {
|
||||||
packadd dashboard-nvim-unique-for-tests-please-dont-use-opt
|
packadd dashboard-nvim-unique-for-tests-please-dont-use-opt
|
||||||
|
|
||||||
" Try to run Dashboard again, and throw if it fails
|
" Try to run Dashboard again, and throw if it fails
|
||||||
try
|
let res = exists(':Dashboard')
|
||||||
Dashboard
|
if res == 0
|
||||||
echo "Dashboard found"
|
|
||||||
catch /^Vim\%((\a\+)\)\=:E492/
|
|
||||||
echo "Dashboard not found, throwing error"
|
echo "Dashboard not found, throwing error"
|
||||||
cquit 1
|
cquit 1
|
||||||
endtry
|
endif
|
||||||
|
cquit 0
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue