mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 21:00:03 +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 {{{
|
||||
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'
|
||||
|
Loading…
Reference in New Issue
Block a user