mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-04 03:40:05 +08:00
21 lines
683 B
VimL
Vendored
21 lines
683 B
VimL
Vendored
"=============================================================================
|
|
" git.vim --- git plugin for spacevim
|
|
" Copyright (c) 2016-2023 Wang Shidong & Contributors
|
|
" Author: Wang Shidong < wsdjeg@outlook.com >
|
|
" URL: https://spacevim.org
|
|
" License: GPLv3
|
|
"=============================================================================
|
|
|
|
let g:loaded_git = 1
|
|
|
|
|
|
if has('nvim-0.9.0')
|
|
command! -nargs=+ -complete=custom,git#complete Git lua require('git').run(<f-args>)
|
|
else
|
|
""
|
|
" Run git command asynchronously
|
|
command! -nargs=+ -complete=custom,git#complete Git call git#run(<f-args>)
|
|
endif
|
|
|
|
call SpaceVim#plugins#projectmanager#reg_callback(function('git#branch#detect'))
|