1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update settings for cpp/c language

This commit is contained in:
jdhao 2020-04-20 19:32:07 +08:00 committed by GitHub
parent 08204349f4
commit b1c00de353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,9 @@ call plug#begin(g:PLUGIN_HOME)
" Auto-completion
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'deoplete-plugins/deoplete-clang'
if executable('clang') && (is_mac || is_linux)
Plug 'deoplete-plugins/deoplete-clang'
endif
" Python source for deoplete
Plug 'zchee/deoplete-jedi', { 'for': 'python' }
@ -638,6 +640,10 @@ let g:neoformat_cpp_clangformat = {
\ 'exe': 'clang-format',
\ 'args': ['--style="{IndentWidth: 4}"']
\}
let g:neoformat_c_clangformat = {
\ 'exe': 'clang-format',
\ 'args': ['--style="{IndentWidth: 4}"']
\}
let g:neoformat_enabled_cpp = ['clangformat']
let g:neoformat_enabled_c = ['clangformat']