1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-04 06:50:04 +08:00
SpaceVim/bundle/git.vim/plugin/git.vim

21 lines
683 B
VimL
Raw Normal View History

2021-01-02 18:15:08 +08:00
"=============================================================================
" git.vim --- git plugin for spacevim
2023-03-26 13:44:47 +08:00
" Copyright (c) 2016-2023 Wang Shidong & Contributors
2021-01-02 18:15:08 +08:00
" Author: Wang Shidong < wsdjeg@outlook.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
let g:loaded_git = 1
2023-07-23 23:36:52 +08:00
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
2021-01-02 18:15:08 +08:00
call SpaceVim#plugins#projectmanager#reg_callback(function('git#branch#detect'))