1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 20:30:05 +08:00

fix(java): build classpath when switch project

This commit is contained in:
wsdjeg 2022-11-02 09:38:10 +08:00
parent 88489db9c2
commit 0a7ec1a1c5

View File

@ -184,6 +184,14 @@ function! SpaceVim#layers#lang#java#config() abort
\ })
endif
call SpaceVim#layers#edit#add_ft_head_tamplate('java', s:java_file_head)
call SpaceVim#plugins#projectmanager#reg_callback(function('s:handle_java_project_changed'))
endfunction
function! s:handle_java_project_changed() abort
try
call javacomplete#classpath#classpath#BuildClassPath()
catch
endtry
endfunction
function! s:JspFileTypeInit() abort