1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:20:05 +08:00

Add .clang for project patterns

This commit is contained in:
wsdjeg 2017-12-24 22:43:31 +08:00
parent dbefd008fe
commit 3e50239aa5
3 changed files with 7 additions and 3 deletions

View File

@ -2,7 +2,7 @@ function! SpaceVim#layers#core#plugins() abort
return [
\ ['Shougo/vimproc.vim', {'build' : ['make']}],
\ ['benizi/vim-automkdir'],
\ ['airblade/vim-rooter', {'merged' : 0}],
\ ['airblade/vim-rooter', {'merged' : 0, 'loadconf' : 1}],
\ ]
endfunction

View File

@ -58,8 +58,8 @@ function! SpaceVim#plugins#projectmanager#RootchandgeCallback() abort
call s:cache_project(project)
let g:_spacevim_project_name = project.name
let b:_spacevim_project_name = g:_spacevim_project_name
for callback in s:project_callback
call call(callback, [])
for Callback in s:project_callback
call call(Callback, [])
endfor
endfunction

View File

@ -0,0 +1,4 @@
let g:rooter_patterns = get(g:, 'rooter_patterns', [])
if index(g:spacevim_plugin_groups, 'lang#c') != -1
call add(g:rooter_patterns, '.clang')
endif