mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 20:30:05 +08:00
fix(javalsp): fix jdtls_home
This commit is contained in:
parent
10043da351
commit
423e83e479
@ -152,6 +152,12 @@ function! SpaceVim#layers#lang#java#config() abort
|
||||
"
|
||||
let g:neomake_java_javac_options = ['-J-Duser.language=en']
|
||||
|
||||
" defined JDTLS_HOME
|
||||
|
||||
if empty($JDTLS_HOME) && !empty($Scoop)
|
||||
let $JDTLS_HOME = $Scoop . '/apps/jdtls/current'
|
||||
endif
|
||||
|
||||
if SpaceVim#layers#lsp#check_filetype('java')
|
||||
call SpaceVim#mapping#gd#add('java', function('SpaceVim#lsp#go_to_def'))
|
||||
else
|
||||
|
@ -14,6 +14,8 @@ This article introduces you to SpaceVim as a Java environment.
|
||||
Before reading this article, I recommend reading [Use vim as IDE](../use-vim-as-ide/), which is for the general usage.
|
||||
With `lang#java` layer, spacevim can be built into a lightweight java integrated development environment.
|
||||
|
||||
![java ide](https://user-images.githubusercontent.com/13142418/228426235-cd9c6fd8-8756-4586-8bfe-d62f51a8ec50.png)
|
||||
|
||||
Each of the following sections will be covered:
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
|
Loading…
Reference in New Issue
Block a user