From 1970054228b3a9a3a8fc99af723ee13c147e7747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 25 Feb 2024 22:49:55 +0100 Subject: Migrate from vim to nvim --- config/nvim/ftplugin/cpp.vim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 config/nvim/ftplugin/cpp.vim (limited to 'config/nvim/ftplugin/cpp.vim') diff --git a/config/nvim/ftplugin/cpp.vim b/config/nvim/ftplugin/cpp.vim new file mode 100644 index 0000000..89944ea --- /dev/null +++ b/config/nvim/ftplugin/cpp.vim @@ -0,0 +1,8 @@ +" This is for C but vim defines *.h as cpp type so here we have it +let b:ale_linters = ['ccls', 'cppcheck', 'flawfinder'] +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