Browse Source

Fix clang-format for cpp

master
Schneider 5 years ago
parent
commit
19e01f0ee3
Signed by: schneider GPG Key ID: 3F50B02A50039F3B
  1. 1
      init.vim
  2. 1
      vim/ftplugin/c.vim
  3. 1
      vim/ftplugin/cpp.vim

1
init.vim

@ -89,6 +89,7 @@ Plug 'nbouscal/vim-stylish-haskell', { 'for': 'haskell' }
Plug 'Rip-Rip/clang_complete', { 'for': ['c', 'cpp'], 'do': 'make install' }
let g:clang_library_path='/usr/lib/llvm-6.0/lib/libclang-6.0.so.1'
Plug 'rhysd/vim-clang-format', { 'for' : ['c', 'cpp', 'java'] }
Plug 'vim-scripts/DoxygenToolkit.vim', { 'for' : ['c', 'cpp'] }
"}}}
" PHP{{{

1
vim/ftplugin/c.vim

@ -1,3 +1,4 @@
let g:ale_fixers = {}
let g:ale_fixers['c'] = ['clang-format']
let g:ale_fixers['cpp'] = ['clang-format']
let g:ale_fix_on_save = 1

1
vim/ftplugin/cpp.vim

@ -1,5 +1,6 @@
let g:ale_fixers = {}
let g:ale_fixers['cpp'] = ['clang-format']
let g:ale_fixers['c'] = ['clang-format']
let g:ale_fix_on_save = 1
let g:ale_cpp_clangtidy_checks = ['*,-fuchsia*']

Loading…
Cancel
Save