mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 04:40:06 +08:00
fix(java): build classpath when switch project
This commit is contained in:
parent
88489db9c2
commit
0a7ec1a1c5
@ -184,6 +184,14 @@ function! SpaceVim#layers#lang#java#config() abort
|
|||||||
\ })
|
\ })
|
||||||
endif
|
endif
|
||||||
call SpaceVim#layers#edit#add_ft_head_tamplate('java', s:java_file_head)
|
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
|
endfunction
|
||||||
|
|
||||||
function! s:JspFileTypeInit() abort
|
function! s:JspFileTypeInit() abort
|
||||||
|
Loading…
Reference in New Issue
Block a user