Don't trigger flycheck on leaving insert state
This is a bit overzealous (and can be slow where slow checkers/big projects are involved). Triggering it on ESC from normal mode (or C-g) should be enough.
This commit is contained in:
parent
34c490aae5
commit
9363ea8738
1 changed files with 1 additions and 2 deletions
|
@ -13,8 +13,7 @@
|
|||
(when flycheck-mode
|
||||
(ignore-errors (flycheck-buffer))
|
||||
nil))
|
||||
(add-hook 'doom-escape-hook #'+syntax-checkers|flycheck-buffer t)
|
||||
(add-hook 'evil-insert-state-exit-hook #'+syntax-checkers|flycheck-buffer))
|
||||
(add-hook 'doom-escape-hook #'+syntax-checkers|flycheck-buffer t))
|
||||
|
||||
(global-flycheck-mode +1))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue