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,