mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 10:10:04 +08:00
parent
0e368ab4bc
commit
2f87f1367f
@ -49,7 +49,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
let s:clang_executable = 'clang'
|
if exists('s:clang_executable')
|
||||||
|
finish
|
||||||
|
else
|
||||||
|
let s:clang_executable = 'clang'
|
||||||
|
endif
|
||||||
let s:SYSTEM = SpaceVim#api#import('system')
|
let s:SYSTEM = SpaceVim#api#import('system')
|
||||||
let s:CPT = SpaceVim#api#import('vim#compatible')
|
let s:CPT = SpaceVim#api#import('vim#compatible')
|
||||||
|
|
||||||
@ -129,11 +133,15 @@ function! SpaceVim#layers#lang#c#config() abort
|
|||||||
augroup SpaceVim_lang_c
|
augroup SpaceVim_lang_c
|
||||||
autocmd!
|
autocmd!
|
||||||
if s:enable_clang_syntax
|
if s:enable_clang_syntax
|
||||||
if has('nvim') && SpaceVim#util#haspy3lib('clang')
|
if has('nvim')
|
||||||
auto FileType c,cpp ChromaticaStart
|
if s:CPT.has('python3') && SpaceVim#util#haspy3lib('clang')
|
||||||
" else Clamp will start when detect c, cpp file
|
auto FileType c,cpp ChromaticaStart
|
||||||
elseif !has('job')
|
else
|
||||||
" Clighter8 will start when detect c, cpp file
|
auto FileType c,cpp ClampStart
|
||||||
|
endif
|
||||||
|
elseif has('job')
|
||||||
|
auto FileType c,cpp ClStart
|
||||||
|
else
|
||||||
auto FileType c,cpp ClighterEnable
|
auto FileType c,cpp ClighterEnable
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user