diff --git a/autoload/SpaceVim/layers/lang/java.vim b/autoload/SpaceVim/layers/lang/java.vim index e79ee8a6d..8ca9b3f96 100644 --- a/autoload/SpaceVim/layers/lang/java.vim +++ b/autoload/SpaceVim/layers/lang/java.vim @@ -99,8 +99,6 @@ function! SpaceVim#layers#lang#java#config() abort autocmd FileType java setlocal omnifunc=javacomplete#Complete autocmd FileType java call s:java_mappings() augroup END - set tags +=~/others/openjdksrc/java/tags - set tags +=~/others/openjdksrc/javax/tags let g:neoformat_enabled_java = ['googlefmt'] let g:neoformat_java_googlefmt = { \ 'exe': 'java', diff --git a/autoload/SpaceVim/layers/tags.vim b/autoload/SpaceVim/layers/tags.vim index d7c7be7fb..29ca1a9c9 100644 --- a/autoload/SpaceVim/layers/tags.vim +++ b/autoload/SpaceVim/layers/tags.vim @@ -8,7 +8,7 @@ function! SpaceVim#layers#tags#plugins() abort return [ - \ ['ludovicchabant/vim-gutentags', {'merged' : 0}], + \ ['ludovicchabant/vim-gutentags', {'merged' : 0, 'loadconf' : 1}], \ ['SpaceVim/gtags.vim', {'merged' : 0}], \ ['tsukkee/unite-tag', {'merged' : 0}], \ ] diff --git a/config/plugins/vim-gutentags.vim b/config/plugins/vim-gutentags.vim new file mode 100644 index 000000000..18640a955 --- /dev/null +++ b/config/plugins/vim-gutentags.vim @@ -0,0 +1,2 @@ +let g:gutentags_cache_dir = get(g:, 'gutentags_cache_dir', expand('~/.cache/tags')) +let g:gutentags_modules = get(g:, 'gutentags_modules', ['ctags', 'gtags_cscope'])