1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 07:00:04 +08:00

test(vader): fix vader test

This commit is contained in:
Eric Wong 2024-07-08 23:01:40 +08:00 committed by GitHub
parent e6e406c981
commit f6f1261486
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 27 additions and 4 deletions

View File

@ -1749,7 +1749,6 @@ function! s:lazy_end(...) abort
endfunction
function! SpaceVim#end() abort
let g:_spacevim_mappings_prefixs['[SPC]'] = {'name' : '+SPC prefix'}
let g:_spacevim_mappings_space.t = {'name' : '+Toggles'}
let g:_spacevim_mappings_space.t.h = {'name' : '+Toggles highlight'}
@ -1771,6 +1770,8 @@ function! SpaceVim#end() abort
let g:_spacevim_mappings_space.d = {'name' : '+Debug'}
let g:_spacevim_mappings_space.e = {'name' : '+Errors/Encoding'}
let g:_spacevim_mappings_space.B = {'name' : '+Global buffers'}
function! SpaceVim#end() abort
let &tabline = ' '
if has('timers')
call timer_start(g:spacevim_lazy_conf_timeout, function('s:lazy_end'))

View File

@ -21,3 +21,9 @@ function! SpaceVim#layers#lang#qml#plugins() abort
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-qml', {'merged' : 0}])
return plugins
endfunction
function! SpaceVim#layers#lang#qml#health() abort
return 1
endfunction

View File

@ -108,7 +108,13 @@ else
" saving cache
function! s:cache() abort
silent call writefile([s:JSON.json_encode(s:project_config)], s:FILE.unify_path(s:cache_path, ':p'))
try
let rst = writefile([s:JSON.json_encode(s:project_config)], s:FILE.unify_path(s:cache_path, ':p'))
if rst !=# 0
call s:LOGGER.info('failed to write cache')
endif
catch
endtry
endfunction
function! s:load_cache() abort

View File

@ -102,7 +102,13 @@ else
let s:project_cache_path = s:FILE.unify_path(g:spacevim_data_dir, ':p') . 'SpaceVim/projects.json'
function! s:cache() abort
call writefile([s:JSON.json_encode(s:project_paths)], s:FILE.unify_path(s:project_cache_path, ':p'))
try
let rst = writefile([s:JSON.json_encode(s:project_paths)], s:FILE.unify_path(s:project_cache_path, ':p'))
if rst !=# 0
call s:LOGGER.info('failed to write cache')
endif
catch
endtry
endfunction
function! s:load_cache() abort

View File

@ -1248,7 +1248,11 @@ function M.remove_section(name)
vim.g.spacevim_statusline_right = right
vim.opt_local.statusline = M.get(1)
end
function M.health() end
function M.health()
return true
end
function M.init()
local group = vim.api.nvim_create_augroup('spacevim_statusline', { clear = true })
vim.api.nvim_create_autocmd({ 'BufWinEnter', 'WinEnter', 'FileType', 'BufWritePost' }, {