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/c.vim | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'vim/ftplugin/c.vim') diff --git a/vim/ftplugin/c.vim b/vim/ftplugin/c.vim index 9b9cd90..3464e2d 100644 --- a/vim/ftplugin/c.vim +++ b/vim/ftplugin/c.vim @@ -1,6 +1,10 @@ -let b:ale_linters = ['cppcheck', 'ccls', 'flawfinder'] -let b:ale_fixers = ['remove_trailing_lines', 'trim_whitespace'] -"let g:ale_c_parse_compile_commands = 1 +setlocal colorcolumn=120 +setlocal textwidth=120 + +let b:ale_linters = ['ccls', 'cppcheck', 'flawfinder', 'clangtidy'] +let b:ale_fixers = ['clang-format', 'remove_trailing_lines', 'trim_whitespace'] +let g:ale_c_ccls_init_options = {'cache': {'directory': '/tmp/ccls/cache'}} +let g:ale_c_parse_compile_commands = 1 nmap :ALENext nmap :ALEPrevious -- cgit v1.2.3