diff --git a/autoload/SpaceVim/layers/cscope.vim b/autoload/SpaceVim/layers/cscope.vim index 534f9c4c9..7e821df70 100644 --- a/autoload/SpaceVim/layers/cscope.vim +++ b/autoload/SpaceVim/layers/cscope.vim @@ -70,6 +70,13 @@ let s:cscope_command = 'cscope' let s:auto_update = 1 let s:list_files_command = ['rg', '--color=never', '--files'] +function! SpaceVim#layers#cscope#loadable() abort + + return (!has('nvim') && has('cscope')) + \ || (has('nvim') && exists(':cscope') == 2) + +endfunction + function! SpaceVim#layers#cscope#plugins() abort let plugins = [ \ [g:_spacevim_root_dir . 'bundle/cscope.vim', {'merged' : 0}],