tweak(syntax): feat gate flycheck in all modules

This commit is contained in:
Jeetaditya Chatterjee 2022-08-17 01:16:08 +01:00
parent b957142e3e
commit 4696f0d4ce
No known key found for this signature in database
GPG key ID: 4A1E5568BA34D124
40 changed files with 86 additions and 45 deletions

View file

@ -35,7 +35,7 @@ This is ignored by ccls.")
(use-package! cc-mode
:mode ("\\.mm\\'" . objc-mode)
;; Use `c-mode'/`c++-mode'/`objc-mode' depending on heuristics
:mode ("\\.h\\'" . +cc-c-c++-objc-mode)
:mode ("\\.h\\'" . +cc-c-c++-objc-mode)
;; Ensure find-file-at-point recognize system libraries in C modes. It must be
;; set up before the likes of irony/lsp are initialized. Also, we use
;; local-vars hooks to ensure these only run in their respective major modes,
@ -146,7 +146,8 @@ This is ignored by ccls.")
:hook (irony-mode . irony-eldoc))
(use-package! flycheck-irony
:when (modulep! :checkers syntax)
:when (and (modulep! :checkers syntax)
(not (modulep! :checkers syntax +flymake)))
:config (flycheck-irony-setup))
(use-package! company-irony