1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update: add cpp/c support.

This commit is contained in:
jdhao 2020-04-18 22:24:55 +08:00 committed by GitHub
parent 8bca4c973b
commit 08204349f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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