From 471285387a248ccbc27c1376481dd8dee1ccb589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 7 Jul 2021 13:39:30 +0200 Subject: vim: tweak file plugins --- vim/ftplugin/cpp.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'vim/ftplugin/cpp.vim') diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index 7d278bf..7086bfb 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -1,7 +1,8 @@ " This is for C but vim defines *.h as cpp type so here we have it -let b:ale_linters = ['cppcheck', 'cquery'] -let b:ale_fixers = ['remove_trailing_lines', 'trim_whitespace'] -"let g:ale_c_parse_compile_commands = 1 +let b:ale_linters = ['ccls', 'cppcheck', 'flawfinder', 'clangtidy'] +let b:ale_fixers = ['clang-format', 'remove_trailing_lines', 'trim_whitespace'] +let g:ale_cpp_ccls_init_options = {'cache': {'directory': '/tmp/ccls/cache'}} +let g:ale_cpp_parse_compile_commands = 1 nmap :ALENext nmap :ALEPrevious -- cgit v1.2.3