From 2b77a8b9de58ad75e4444d26d2b38f1bf4eb3487 Mon Sep 17 00:00:00 2001 From: jdhao Date: Wed, 25 Nov 2020 21:34:34 +0800 Subject: [PATCH] update ALE and Neoformat settings Disable ALE for C++/C linting since we use ccls. --- core/plugins.vim | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/core/plugins.vim b/core/plugins.vim index 0df68f2..ab30006 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -662,9 +662,7 @@ nmap P (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']