1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 21:00:03 +08:00

fix(cscope): disable cscope for neovim 0.9.0

This commit is contained in:
wsdjeg 2023-04-07 23:58:12 +08:00
parent 762da59e5b
commit 2cf2f0a987

View File

@ -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}],