spacevim/autoload/SpaceVim/commands/debug.vim

23 lines
819 B
VimL
Raw Normal View History

2024-08-21 14:17:26 +08:00
"=============================================================================
" debug.vim --- debug tool for SpaceVim command
" Copyright (c) 2016-2023 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