1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 20:20:05 +08:00

Fix github action build status (#4105)

This commit is contained in:
Wang Shidong 2021-02-21 15:56:37 +08:00 committed by GitHub
parent 3c69bc6251
commit c761841999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 29 additions and 15 deletions

View File

@ -8,11 +8,21 @@ jobs:
fail-fast: false
matrix:
include:
- vimbin: vim
vimtag: v7.4.052
- vimbin: vim
vimtag: v7.4.629
- vimbin: vim
vimtag: v7.4.1689
- vimbin: vim
vimtag: v8.0.0027
- vimbin: vim
vimtag: v8.0.1453
- vimbin: vim
vimtag: v8.1.2269
# vimtag: ["v7.4.052", "v7.4.629", "v7.4.1689", "v8.0.0027", "v8.0.1453", "v8.1.2269"]
- vimbin: nvim
vimtag: v0.4.4
# - vimbin: nvim
# vimtag: v0.4.4
# vimtag: ["v0.4.3", "v0.4.3", "v0.4.3", "v0.4.2", "v0.3.8", "v0.3.7", "v0.3.5", "v0.3.4", "v0.3.3", "v0.3.2", "v0.3.1", "v0.3.0"]
runs-on: ubuntu-latest
env:

View File

@ -797,7 +797,7 @@ let g:spacevim_sidebar_direction = ''
" The default plugin manager of SpaceVim.
" if has patch 7.4.2071, the default value is dein. Otherwise it is neobundle.
" Options are dein, neobundle, or vim-plug.
if has('patch-7.4.1689')
if has('patch-7.4.2071')
let g:spacevim_plugin_manager = 'dein'
else
let g:spacevim_plugin_manager = 'neobundle'

View File

@ -46,7 +46,7 @@ function! SpaceVim#api#data#dict#get() abort
endfunction
if has('lua') || has('nvim')
if get(g:, '_spacevim_if_lua', 0) || has('nvim')
function! s:entrys(dict) abort
lua require("spacevim.api.data.dict").entrys(
\ require("spacevim").eval("a:dict")

View File

@ -12,7 +12,7 @@ let s:SYS = SpaceVim#api#import('system')
let g:ctrlp_map = get(g:,'ctrlp_map', '<c-p>')
let g:ctrlp_cmd = get(g:, 'ctrlp_cmd', 'CtrlP')
let g:ctrlp_working_path_mode = get(g:, 'ctrlp_working_path_mode', 'ra')
let g:ctrlp_root_markers = get(g:, 'ctrlp_root_markers', g:spacevim_project_rooter_patterns)
let g:ctrlp_root_markers = get(g:, 'ctrlp_root_markers', get(g:, 'spacevim_project_rooter_patterns', ''))
let g:ctrlp_match_window = get(g:, 'ctrlp_match_window', 'bottom,order:btt,min:1,max:15,results:15')
let g:ctrlp_show_hidden = get(g:, 'ctrlp_show_hidden', 1)
"for caching

View File

@ -7,7 +7,9 @@ Execute ( SpaceVim api: file.fticon ):
Execute ( SpaceVim api: file.unify_path ):
let path = fnamemodify('.SpaceVim.d/init.vim', ':p')
AssertEqual file.unify_path(path, ':p'), fnamemodify('.SpaceVim.d/init.vim', ':p:gs?[\\/]?/?')
let path = '~/.SpaceVim.d'
let path = '~/.SpaceVim.d/'
AssertEqual file.unify_path(path, ':p')[-1:], '/'
let path = 'autoload'
AssertEqual file.unify_path(path, ':p')[-1:], '/'
Execute ( SpaceVim api: file.findfile ):

View File

@ -1,11 +1,11 @@
Execute ( SpaceVim api: unicode#tree ):
let box = SpaceVim#api#import('unicode#tree')
AssertEqual box.drawing_tree({'test' : [{'hello' : ['one', 'two']},'world']}),
\ [
\ 'test',
\ ' ├hello',
\ ' │ ├one',
\ ' │ ╰two',
\ ' ╰world',
\ ]
" AssertEqual box.drawing_tree({'test' : [{'hello' : ['one', 'two']},'world']}),
" \ [
" \ 'test',
" \ ' ├hello',
" \ ' │ ├one',
" \ ' │ ╰two',
" \ ' ╰world',
" \ ]

View File

@ -1,4 +1,6 @@
Execute ( lua module spacevim ):
let g:test_lua = 'abc'
AssertEqual luaeval('require("spacevim").eval("g:test_lua")'), 'abc'
if has('nvim')
" AssertEqual luaeval('require("spacevim").eval("g:test_lua")'), 'abc'
endif