aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins.vim8
1 files changed, 7 insertions, 1 deletions
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']