1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-12 17:55:41 +08:00
2022-03-27 13:38:54 +08:00

23 lines
819 B
VimL

"=============================================================================
" debug.vim --- debug tool for SpaceVim command
" Copyright (c) 2016-2022 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg@outlook.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
let s:debug_message = []
function! SpaceVim#commands#debug#completion_debug(ArgLead, CmdLine, CursorPos) abort
call add(s:debug_message, 'arglead:['.a:ArgLead .'] cmdline:[' .a:CmdLine .'] cursorpos:[' .a:CursorPos .']')
endfunction
function! SpaceVim#commands#debug#get_message() abort
return join(s:debug_message, "\n")
endfunction
function! SpaceVim#commands#debug#clean_message() abort
let s:debug_message = []
return s:debug_message
endfunction