Skip to content

Commit

Permalink
test(vader): fix vader test
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdjeg authored Jul 8, 2024
1 parent e6e406c commit f6f1261
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
3 changes: 2 additions & 1 deletion autoload/SpaceVim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
Expand All @@ -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'))
Expand Down
6 changes: 6 additions & 0 deletions autoload/SpaceVim/layers/lang/qml.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 7 additions & 1 deletion autoload/SpaceVim/plugins/a.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion autoload/SpaceVim/plugins/projectmanager.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion lua/spacevim/plugin/statusline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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' }, {
Expand Down

0 comments on commit f6f1261

Please sign in to comment.