-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit-flycheck.el
29 lines (27 loc) · 977 Bytes
/
init-flycheck.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
(use-package flycheck
;; using lsp-bridge now, but still require this file since flycheck-* is used in many places
;; :hook (prog-mode . flycheck-mode)
:config
(setq flycheck-idle-change-delay 1)
(evil-set-initial-state 'flycheck-error-list-mode 'motion)
;; (jester/with-leader
;; "e l" 'flycheck-list-errors
;; "e p" 'flycheck-previous-error
;; "e n" 'flycheck-next-error)
(general-define-key
:states '(motion)
:keymaps 'flycheck-error-list-mode-map
"j" 'flycheck-error-list-next-error
"k" 'flycheck-error-list-previous-error
"f" 'flycheck-error-list-set-filter
"F" 'flycheck-error-list-reset-filter
"r" 'flycheck-error-list-check-source
"e" 'flycheck-error-list-explain-error
"<return>" 'flycheck-error-list-goto-error))
(use-package flycheck-posframe
:if window-system
:after flycheck
:hook (flycheck-mode . flycheck-posframe-mode)
:config
(flycheck-posframe-configure-pretty-defaults))
(provide 'init-flycheck)