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

fix(lang#c): disable clangx when lsp enabled

This commit is contained in:
wsdjeg 2022-10-30 22:00:44 +08:00
parent aae60509e8
commit d6ace74117

View File

@ -134,7 +134,9 @@ let s:CPT = SpaceVim#api#import('vim#compatible')
" plugins {{{
function! SpaceVim#layers#lang#c#plugins() abort
let plugins = []
if !SpaceVim#layers#lsp#check_filetype('c') && !SpaceVim#layers#lsp#check_filetype('cpp')
if !SpaceVim#layers#lsp#check_filetype('c')
\ && !SpaceVim#layers#lsp#check_filetype('cpp')
\ && !SpaceVim#layers#lsp#check_server('clangd')
if g:spacevim_autocomplete_method ==# 'deoplete'
call add(plugins, ['Shougo/deoplete-clangx', {'merged' : 0}])
elseif g:spacevim_autocomplete_method ==# 'ycm'