diff --git a/init.el b/init.el index 3d88f5d..f7d1639 100644 --- a/init.el +++ b/init.el @@ -252,8 +252,9 @@ With argument, do this that many times." (flycheck-clang-tidy-setup) ;; Run clang-tidy after the lsp-ui checker. (when lsp-mode - (flycheck-add-next-checker 'lsp-ui '(warning . c/c++-clang-tidy))) - ) + (unless (equal (flycheck-get-next-checker-for-buffer 'lsp-ui) + 'c/c++-clang-tidy) + (flycheck-add-next-checker 'lsp-ui '(warning . c/c++-clang-tidy))))) :hook (flycheck-mode . my/flycheck-clang-tidy-setup) (first-change . my/clang-tidy-off) ; Disable when file is modified.