mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 20:30:05 +08:00
Change root
This commit is contained in:
parent
664fda4cd6
commit
d1ce686e09
@ -414,6 +414,13 @@ let g:spacevim_enable_powerline_fonts = 1
|
||||
let g:spacevim_lint_on_save = 1
|
||||
let g:spacevim_search_tools = ['rg', 'ag', 'pt', 'ack', 'grep']
|
||||
""
|
||||
" Set the project rooter patterns, by default it is
|
||||
" `['.git/', '_darcs/', '.hg/', '.bzr/', '.svn/']`
|
||||
let g:spacevim_project_rooter_patterns = ['.git/', '_darcs/', '.hg/', '.bzr/', '.svn/']
|
||||
""
|
||||
" Enable/Disable changing directory automatically. Enabled by default.
|
||||
let g:spacevim_project_rooter_automatically = 1
|
||||
""
|
||||
" Enable/Disable lint on the fly feature of SpaceVim's maker. Default is 0.
|
||||
" >
|
||||
" let g:spacevim_lint_on_the_fly = 0
|
||||
|
@ -87,6 +87,7 @@ function! SpaceVim#layers#lang#c#config() abort
|
||||
let g:neomake_cpp_enabled_makers = ['clang']
|
||||
endif
|
||||
let g:chromatica#enable_at_startup=1
|
||||
call add(g:spacevim_project_rooter_patterns, '.clang')
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#layers#lang#c#set_variable(var) abort
|
||||
|
@ -106,10 +106,7 @@ function! SpaceVim#plugins#projectmanager#kill_project() abort
|
||||
|
||||
endfunction
|
||||
|
||||
let g:spacevim_project_rooter_patterns = ['.git/', '_darcs/', '.hg/', '.bzr/', '.svn/']
|
||||
|
||||
let g:spacevim_project_rooter_manual_only = 0
|
||||
if !g:spacevim_project_rooter_manual_only
|
||||
if g:spacevim_project_rooter_automatically
|
||||
augroup spacevim_project_rooter
|
||||
autocmd!
|
||||
autocmd VimEnter,BufEnter * call SpaceVim#plugins#projectmanager#current_root()
|
||||
|
@ -46,7 +46,6 @@ catch
|
||||
call zvim#util#source_rc('functions.vim')
|
||||
endtry
|
||||
|
||||
call SpaceVim#plugins#projectmanager#RootchandgeCallback()
|
||||
|
||||
|
||||
call zvim#util#source_rc('init.vim')
|
||||
@ -59,6 +58,8 @@ call SpaceVim#server#connect()
|
||||
|
||||
call SpaceVim#end()
|
||||
|
||||
call SpaceVim#plugins#projectmanager#RootchandgeCallback()
|
||||
|
||||
call zvim#util#source_rc('general.vim')
|
||||
|
||||
|
||||
|
@ -437,6 +437,13 @@ Enable/Disable lint on save feature of SpaceVim's maker. Default is 1.
|
||||
let g:spacevim_lint_on_save = 0
|
||||
<
|
||||
|
||||
*g:spacevim_project_rooter_patterns*
|
||||
Set the project rooter patterns, by default it is `['.git/', '_darcs/',
|
||||
'.hg/', '.bzr/', '.svn/']`
|
||||
|
||||
*g:spacevim_project_rooter_automatically*
|
||||
Enable/Disable changing directory automatically. Enabled by default.
|
||||
|
||||
*g:spacevim_lint_on_the_fly*
|
||||
Enable/Disable lint on the fly feature of SpaceVim's maker. Default is 0.
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user