From 0a37abcc6ba7c79a2c7fdd91064eabd9ec921fd0 Mon Sep 17 00:00:00 2001 From: Hartmann Date: Thu, 11 Apr 2024 10:34:00 +0200 Subject: [PATCH] enhance output of clang-tidy --- lua/overseer/template/user/clang/clang-tidy.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/overseer/template/user/clang/clang-tidy.lua b/lua/overseer/template/user/clang/clang-tidy.lua index 998bc04..b475fc0 100644 --- a/lua/overseer/template/user/clang/clang-tidy.lua +++ b/lua/overseer/template/user/clang/clang-tidy.lua @@ -10,9 +10,10 @@ return { args = { file, '-p', 'build_nvim', '--quiet', '--config-file', dir .. '/.clang-tidy' }, cwd = dir, components = { - { 'on_result_diagnostics_quickfix', open = true }, + { 'on_result_diagnostics_quickfix', open = false}, { 'on_output_parse', problem_matcher = '$gcc' }, - { 'on_result_diagnostics' }, + { 'on_result_diagnostics', remove_on_restart = true }, + { 'restart_on_save'}, 'default' }, } end,