1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00

Reg key bindings for cpp

This commit is contained in:
wsdjeg 2017-12-25 21:13:06 +08:00
parent 06fa149581
commit 73b4fd4f91

View File

@ -65,6 +65,8 @@ endfunction
function! SpaceVim#layers#lang#c#config() abort
call SpaceVim#plugins#runner#reg_runner('c', ['gcc -o #TEMP# %s', '#TEMP#'])
call SpaceVim#mapping#space#regesit_lang_mappings('c', funcref('s:language_specified_mappings'))
call SpaceVim#plugins#runner#reg_runner('cpp', ['g++ -o #TEMP# %s', '#TEMP#'])
call SpaceVim#mapping#space#regesit_lang_mappings('cpp', funcref('s:language_specified_mappings'))
call SpaceVim#plugins#projectmanager#reg_callback(funcref('s:update_clang_flag'))
if executable('clang')
let g:neomake_c_enabled_makers = ['clang']