mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 01:50:05 +08:00
31 lines
747 B
VimL
31 lines
747 B
VimL
if exists('g:GitHub_api_plugin_loaded')
|
|
finish
|
|
endif
|
|
|
|
let s:save_cpo = &cpoptions
|
|
set cpoptions&vim
|
|
|
|
""
|
|
" Github api root url:
|
|
"
|
|
" default : https://api.github.com/
|
|
let g:githubapi_root_url = 'https://api.github.com/'
|
|
""
|
|
" set githubapi verbose when run shell command. By default it is 0.
|
|
let g:githubapi_verbose = get(g:, 'githubapi_verbose', 0)
|
|
|
|
""
|
|
" set the token of github api
|
|
let g:githubapi_token = get(g:, 'githubapi_token', '')
|
|
""
|
|
" Specific the path for curl, by default it is 'curl', in windows you can use
|
|
" >
|
|
" let g:githubapi_curl_exe = 'D:\Program Files\Neovim\bin\curl.exe'
|
|
" <
|
|
let g:githubapi_curl_exe = get(g:, 'githubapi_curl_exe', 'curl')
|
|
|
|
let g:GitHub_api_plugin_loaded = 1
|
|
|
|
let &cpoptions = s:save_cpo
|
|
unlet s:save_cpo
|