feat(flycheck): add +icons flag
Close: #7814 Co-authored-by: Dev380 <Dev380@users.noreply.github.com>
This commit is contained in:
parent
778fc9ad3f
commit
c8b5bf7bd1
2 changed files with 10 additions and 4 deletions
|
@ -16,6 +16,8 @@ This module provides syntax checking and error highlighting, powered by
|
||||||
*Requires GUI Emacs.*
|
*Requires GUI Emacs.*
|
||||||
- +flymake :: Leverages the inbuilt [[doom-package:flymake]] for error and
|
- +flymake :: Leverages the inbuilt [[doom-package:flymake]] for error and
|
||||||
diagnostics highlighting.
|
diagnostics highlighting.
|
||||||
|
- +icons :: Use unicode icons rather than ASCII prefixes in error tooltips or
|
||||||
|
childframes.
|
||||||
|
|
||||||
** Packages
|
** Packages
|
||||||
- [[doom-package:flycheck]]
|
- [[doom-package:flycheck]]
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
:commands flycheck-popup-tip-show-popup flycheck-popup-tip-delete-popup
|
:commands flycheck-popup-tip-show-popup flycheck-popup-tip-delete-popup
|
||||||
:hook (flycheck-mode . +syntax-init-popups-h)
|
:hook (flycheck-mode . +syntax-init-popups-h)
|
||||||
:config
|
:config
|
||||||
(setq flycheck-popup-tip-error-prefix "X ")
|
(setq flycheck-popup-tip-error-prefix (if (modulep! +icons) "⚠ " "[!] "))
|
||||||
|
|
||||||
;; HACK: Only display the flycheck popup if we're in normal mode (for evil
|
;; HACK: Only display the flycheck popup if we're in normal mode (for evil
|
||||||
;; users) or if no selection or completion is active. This popup can
|
;; users) or if no selection or completion is active. This popup can
|
||||||
|
@ -71,9 +71,13 @@
|
||||||
:unless (modulep! +flymake)
|
:unless (modulep! +flymake)
|
||||||
:hook (flycheck-mode . +syntax-init-popups-h)
|
:hook (flycheck-mode . +syntax-init-popups-h)
|
||||||
:config
|
:config
|
||||||
(setq flycheck-posframe-warning-prefix "! "
|
(if (modulep! +icons)
|
||||||
flycheck-posframe-info-prefix "··· "
|
(setq flycheck-posframe-warning-prefix "⚠ "
|
||||||
flycheck-posframe-error-prefix "X ")
|
flycheck-posframe-info-prefix "ⓘ "
|
||||||
|
flycheck-posframe-error-prefix "⚠ ")
|
||||||
|
(setq flycheck-posframe-warning-prefix "[?] "
|
||||||
|
flycheck-posframe-info-prefix "[i] "
|
||||||
|
flycheck-posframe-error-prefix "[!] "))
|
||||||
|
|
||||||
;; HACK: Hide the flycheck posframe immediately on the next keypress/user
|
;; HACK: Hide the flycheck posframe immediately on the next keypress/user
|
||||||
;; action, otherwise it lingers until the next time the user is idle.
|
;; action, otherwise it lingers until the next time the user is idle.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue