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']