mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 09:20:06 +08:00
fix(lang#c): disable clangx when lsp enabled
This commit is contained in:
parent
aae60509e8
commit
d6ace74117
@ -134,7 +134,9 @@ let s:CPT = SpaceVim#api#import('vim#compatible')
|
|||||||
" plugins {{{
|
" plugins {{{
|
||||||
function! SpaceVim#layers#lang#c#plugins() abort
|
function! SpaceVim#layers#lang#c#plugins() abort
|
||||||
let plugins = []
|
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'
|
if g:spacevim_autocomplete_method ==# 'deoplete'
|
||||||
call add(plugins, ['Shougo/deoplete-clangx', {'merged' : 0}])
|
call add(plugins, ['Shougo/deoplete-clangx', {'merged' : 0}])
|
||||||
elseif g:spacevim_autocomplete_method ==# 'ycm'
|
elseif g:spacevim_autocomplete_method ==# 'ycm'
|
||||||
|
Loading…
Reference in New Issue
Block a user