1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 10:15:41 +08:00

23 lines
819 B
VimL
Raw Normal View History

2019-06-09 14:11:17 +08:00
"=============================================================================
" debug.vim --- debug tool for SpaceVim command
2022-02-03 17:24:51 +08:00
" Copyright (c) 2016-2022 Wang Shidong & Contributors
2022-03-27 13:38:54 +08:00
" Author: Wang Shidong < wsdjeg@outlook.com >
2019-06-09 14:11:17 +08:00
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
2016-12-26 21:11:19 +08:00
let s:debug_message = []
function! SpaceVim#commands#debug#completion_debug(ArgLead, CmdLine, CursorPos) abort
2019-01-28 22:12:37 +08:00
call add(s:debug_message, 'arglead:['.a:ArgLead .'] cmdline:[' .a:CmdLine .'] cursorpos:[' .a:CursorPos .']')
2016-12-26 21:11:19 +08:00
endfunction
function! SpaceVim#commands#debug#get_message() abort
2016-12-26 21:11:19 +08:00
return join(s:debug_message, "\n")
endfunction
function! SpaceVim#commands#debug#clean_message() abort
2016-12-26 21:11:19 +08:00
let s:debug_message = []
return s:debug_message
endfunction