From b1c00de3534aa26b496cef0b8c17fee9940b7b84 Mon Sep 17 00:00:00 2001 From: jdhao Date: Mon, 20 Apr 2020 19:32:07 +0800 Subject: [PATCH] update settings for cpp/c language --- plugins.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins.vim b/plugins.vim index a48515e..e70714f 100644 --- a/plugins.vim +++ b/plugins.vim @@ -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']