mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
update ALE and Neoformat settings
Disable ALE for C++/C linting since we use ccls.
This commit is contained in:
parent
283356ee52
commit
2b77a8b9de
@ -662,9 +662,7 @@ nmap P <Plug>(miniyank-autoPut)
|
||||
" linters for different filetypes
|
||||
let g:ale_linters = {
|
||||
\ 'vim': ['vint'],
|
||||
\ 'cpp': ['clang'],
|
||||
\ 'c': ['clang']
|
||||
\}
|
||||
\ }
|
||||
|
||||
" Only run linters in the g:ale_linters dictionary
|
||||
let g:ale_linters_explicit = 1
|
||||
@ -676,13 +674,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}"']
|
||||
\}
|
||||
\ 'exe': 'clang-format',
|
||||
\ 'args': ['--style="{IndentWidth: 4}"']
|
||||
\ }
|
||||
let g:neoformat_c_clangformat = {
|
||||
\ 'exe': 'clang-format',
|
||||
\ 'args': ['--style="{IndentWidth: 4}"']
|
||||
\}
|
||||
\ 'exe': 'clang-format',
|
||||
\ 'args': ['--style="{IndentWidth: 4}"']
|
||||
\ }
|
||||
|
||||
let g:neoformat_enabled_cpp = ['clangformat']
|
||||
let g:neoformat_enabled_c = ['clangformat']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user