mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:10:04 +08:00
Add .clang for project patterns
This commit is contained in:
parent
dbefd008fe
commit
3e50239aa5
@ -2,7 +2,7 @@ function! SpaceVim#layers#core#plugins() abort
|
|||||||
return [
|
return [
|
||||||
\ ['Shougo/vimproc.vim', {'build' : ['make']}],
|
\ ['Shougo/vimproc.vim', {'build' : ['make']}],
|
||||||
\ ['benizi/vim-automkdir'],
|
\ ['benizi/vim-automkdir'],
|
||||||
\ ['airblade/vim-rooter', {'merged' : 0}],
|
\ ['airblade/vim-rooter', {'merged' : 0, 'loadconf' : 1}],
|
||||||
\ ]
|
\ ]
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -58,8 +58,8 @@ function! SpaceVim#plugins#projectmanager#RootchandgeCallback() abort
|
|||||||
call s:cache_project(project)
|
call s:cache_project(project)
|
||||||
let g:_spacevim_project_name = project.name
|
let g:_spacevim_project_name = project.name
|
||||||
let b:_spacevim_project_name = g:_spacevim_project_name
|
let b:_spacevim_project_name = g:_spacevim_project_name
|
||||||
for callback in s:project_callback
|
for Callback in s:project_callback
|
||||||
call call(callback, [])
|
call call(Callback, [])
|
||||||
endfor
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
4
config/plugins/vim-rooter.vim
Normal file
4
config/plugins/vim-rooter.vim
Normal 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
|
Loading…
Reference in New Issue
Block a user