2018-03-03 21:52:08 +08:00
|
|
|
"=============================================================================
|
|
|
|
" init.vim --- local config for SpaceVim development
|
2023-03-26 13:44:47 +08:00
|
|
|
" Copyright (c) 2016-2023 Wang Shidong & Contributors
|
2022-03-27 13:38:54 +08:00
|
|
|
" Author: Wang Shidong < wsdjeg@outlook.com >
|
2018-03-03 21:52:08 +08:00
|
|
|
" URL: https://spacevim.org
|
|
|
|
" License: GPLv3
|
|
|
|
"=============================================================================
|
|
|
|
|
2017-05-14 23:34:24 +08:00
|
|
|
let g:spacevim_force_global_config = 1
|
2017-05-15 00:55:15 +08:00
|
|
|
call SpaceVim#custom#SPC('nnoremap', ['a', 'r'], 'call SpaceVim#dev#releases#open()', 'Release SpaceVim', 1)
|
2018-01-13 13:48:36 +08:00
|
|
|
call SpaceVim#custom#SPC('nnoremap', ['a', 'w'], 'call SpaceVim#dev#website#open()', 'Open SpaceVim local website', 1)
|
|
|
|
call SpaceVim#custom#SPC('nnoremap', ['a', 't'], 'call SpaceVim#dev#website#terminal()', 'Close SpaceVim local website', 1)
|
2018-10-28 20:52:12 +08:00
|
|
|
|
|
|
|
" after run make test, the vader will be downloaded to ./build/vader/
|
|
|
|
|
2019-02-03 00:07:31 +08:00
|
|
|
let &runtimepath .= ',' . fnamemodify(g:_spacevim_root_dir, ':p:h') . '/build/vader'
|
2018-10-28 20:52:12 +08:00
|
|
|
|
2019-07-11 18:26:29 +08:00
|
|
|
augroup vader_filetype
|
|
|
|
autocmd!
|
|
|
|
autocmd FileType vader-result setlocal nobuflisted
|
|
|
|
augroup END
|
|
|
|
|
2018-10-28 20:52:12 +08:00
|
|
|
" vader language specific key bindings
|
|
|
|
|
|
|
|
function! s:language_specified_mappings() abort
|
|
|
|
call SpaceVim#mapping#space#langSPC('nmap', ['l','r'],
|
|
|
|
\ 'Vader',
|
|
|
|
\ 'execute current file', 1)
|
|
|
|
endfunction
|
2023-07-31 23:05:12 +08:00
|
|
|
call SpaceVim#plugins#a#set_config_name(getcwd(), '.SpaceVim.d/projections.toml')
|
2021-05-31 23:32:48 +08:00
|
|
|
call SpaceVim#mapping#space#regesit_lang_mappings('vader', function('s:language_specified_mappings'))
|
2019-02-16 19:36:09 +08:00
|
|
|
command! -nargs=1 IssueEdit call SpaceVim#dev#issuemanager#edit(<f-args>)
|
2019-09-26 01:32:34 +08:00
|
|
|
command! -nargs=1 PullCreate call SpaceVim#dev#pull#create(<f-args>)
|
|
|
|
command! -nargs=1 PullMerge call SpaceVim#dev#pull#merge(<f-args>)
|
2019-11-04 22:00:58 +08:00
|
|
|
command! ReleaseSpaceVim call SpaceVim#dev#releases#open()
|
2020-05-17 21:09:14 +08:00
|
|
|
command! -nargs=* -complete=file Profile call SpaceVim#dev#profile#run(<f-args>)
|