mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:30:05 +08:00
fix(javalsp): disable omni source when lsp enabled
This commit is contained in:
parent
423e83e479
commit
5f519c99c9
@ -166,6 +166,7 @@ function! SpaceVim#layers#lang#java#config() abort
|
||||
augroup SpaceVim_lang_java
|
||||
au!
|
||||
if !SpaceVim#layers#lsp#check_filetype('java')
|
||||
\ && !SpaceVim#layers#lsp#check_server('jdtls')
|
||||
" omnifunc will be used only when no java lsp support
|
||||
autocmd FileType java setlocal omnifunc=javacomplete#Complete
|
||||
endif
|
||||
|
@ -18,6 +18,8 @@ call deoplete#custom#option({
|
||||
\ 'nofile_complete_filetypes' : ['denite-filter'],
|
||||
\ })
|
||||
|
||||
if !SpaceVim#layers#lsp#check_filetype('java')
|
||||
\ && !SpaceVim#layers#lsp#check_server('jdtls')
|
||||
" java && jsp
|
||||
call deoplete#custom#var('omni', 'input_patterns', {
|
||||
\ 'java': [
|
||||
@ -35,6 +37,7 @@ else
|
||||
call deoplete#custom#source('omni', 'mark', '')
|
||||
call deoplete#custom#source('omni', 'rank', 9999)
|
||||
endif
|
||||
endif
|
||||
|
||||
" sh
|
||||
call deoplete#custom#option('ignore_sources', {'sh': ['around', 'member', 'tag', 'syntax']})
|
||||
|
Loading…
Reference in New Issue
Block a user