forked from Softmotions/ejdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.lvimrc
26 lines (21 loc) · 811 Bytes
/
.lvimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
" Local vim rc
let g:build_type = 'Debug'
let g:build_tests = 'ON'
let g:cc = 'clang'
let g:cxx = 'clang++'
let g:root_dir = g:localvimrc_script_dir_unresolved
let $ROOT_DIR = g:root_dir
let $UNCRUSTIFY_CONFIG = g:root_dir.'/uncrustify.cfg'
let g:build_dir = g:root_dir.'/build'
let &l:makeprg = 'cd '.g:build_dir.' && make -j4'
packadd termdebug
let g:termdebug_wide=1
nnoremap <leader>c :call asyncrun#run('',
\ {'mode':'terminal','cwd':g:build_dir,'save':2},
\ 'cmake .. -DCMAKE_BUILD_TYPE='.g:build_type.' -DBUILD_TESTS='.g:build_tests
\ .' -DCMAKE_CXX_COMPILER='.g:cxx.' -DCMAKE_C_COMPILER='.g:cc
\ .' -DCMAKE_EXPORT_COMPILE_COMMANDS=ON'
\ .' -DBUILD_JNI_BINDING=ON'
\ .' -DBUILD_NODEJS_BINDING=ON'
\ .' -DBUILD_DART_BINDING=OFF')
\<CR>