1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:20:05 +08:00
SpaceVim/bundle/vim-javacomplete2/t/javacomplete.vim
2022-11-02 00:34:34 +08:00

16 lines
433 B
VimL
Vendored

source plugin/javacomplete.vim
source autoload/javacomplete.vim
source autoload/java_parser.vim
function! g:SID(file) abort
redir => l:scriptnames
silent scriptnames
redir END
for line in split(l:scriptnames, '\n')
let [l:sid, l:path] = matchlist(line, '^\s*\(\d\+\):\s*\(.*\)$')[1:2]
if l:path =~# '\<autoload[/\\]javacomplete[/\\]'.a:file.'\.vim$'
return '<SNR>' . l:sid . '_'
endif
endfor
endfunction