aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/c.vim
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2021-07-07 13:39:30 +0200
committerKarel Kočí <cynerd@email.cz>2021-07-07 13:39:30 +0200
commit471285387a248ccbc27c1376481dd8dee1ccb589 (patch)
tree9014ab0d8ccf4f91cc0c6a1eaa65e8ccee869d96 /vim/ftplugin/c.vim
parenta7855fe4d2242b43b00607212106c84d36bf03ac (diff)
downloadmyconfigs-471285387a248ccbc27c1376481dd8dee1ccb589.tar.gz
myconfigs-471285387a248ccbc27c1376481dd8dee1ccb589.tar.bz2
myconfigs-471285387a248ccbc27c1376481dd8dee1ccb589.zip
vim: tweak file plugins
Diffstat (limited to 'vim/ftplugin/c.vim')
-rw-r--r--vim/ftplugin/c.vim10
1 files changed, 7 insertions, 3 deletions
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 <F8> :ALENext<cr>
nmap <F7> :ALEPrevious<cr>