diff options
| author | jdhao <jdhao@hotmail.com> | 2020-04-18 22:24:55 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-18 22:24:55 +0800 |
| commit | 08204349f45ecf2f31849f258eca6ed2f2f021f4 (patch) | |
| tree | 5b13e9fb951fc3b34c0c8d23b7151181d711d428 /plugins.vim | |
| parent | 8bca4c973b4a831492e7f61499af7467b3df1643 (diff) | |
update: add cpp/c support.
Diffstat (limited to 'plugins.vim')
| -rw-r--r-- | plugins.vim | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins.vim b/plugins.vim index 78ef668..a48515e 100644 --- a/plugins.vim +++ b/plugins.vim @@ -39,6 +39,8 @@ call plug#begin(g:PLUGIN_HOME) " Auto-completion Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } +Plug 'deoplete-plugins/deoplete-clang' + " Python source for deoplete Plug 'zchee/deoplete-jedi', { 'for': 'python' } @@ -618,7 +620,9 @@ augroup END " linters for different filetypes let g:ale_linters = { \ 'python': ['pylint'], - \ 'vim': ['vint'] + \ 'vim': ['vint'], + \ 'cpp': ['clang'], + \ 'c': ['clang'] \} " Only run linters in the g:ale_linters dictionary @@ -630,6 +634,13 @@ let g:ale_sign_warning = '!' """""""""""""""""""""""""""""" neoformat settings """"""""""""""""""""""" let g:neoformat_enabled_python = ['black', 'yapf'] +let g:neoformat_cpp_clangformat = { + \ 'exe': 'clang-format', + \ 'args': ['--style="{IndentWidth: 4}"'] +\} + +let g:neoformat_enabled_cpp = ['clangformat'] +let g:neoformat_enabled_c = ['clangformat'] "}} "{{ Git-related |
