feat(syntax): add flymake configuration
This commit is contained in:
parent
06c891e177
commit
1cae082d66
2 changed files with 29 additions and 6 deletions
|
@ -4,6 +4,7 @@
|
||||||
;;; Flycheck
|
;;; Flycheck
|
||||||
|
|
||||||
(use-package! flycheck
|
(use-package! flycheck
|
||||||
|
:unless (modulep! +flymake)
|
||||||
:commands flycheck-list-errors flycheck-buffer
|
:commands flycheck-list-errors flycheck-buffer
|
||||||
:hook (doom-first-buffer . global-flycheck-mode)
|
:hook (doom-first-buffer . global-flycheck-mode)
|
||||||
:config
|
:config
|
||||||
|
@ -45,6 +46,7 @@
|
||||||
|
|
||||||
|
|
||||||
(use-package! flycheck-popup-tip
|
(use-package! flycheck-popup-tip
|
||||||
|
:unless (modulep! +flymake)
|
||||||
: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
|
||||||
|
@ -63,6 +65,7 @@
|
||||||
|
|
||||||
(use-package! flycheck-posframe
|
(use-package! flycheck-posframe
|
||||||
:when (modulep! +childframe)
|
:when (modulep! +childframe)
|
||||||
|
:unless (modulep! +flymake)
|
||||||
:hook (flycheck-mode . +syntax-init-popups-h)
|
:hook (flycheck-mode . +syntax-init-popups-h)
|
||||||
:config
|
:config
|
||||||
(setq flycheck-posframe-warning-prefix "! "
|
(setq flycheck-posframe-warning-prefix "! "
|
||||||
|
@ -80,4 +83,20 @@
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;;; TODO Flymake
|
;;; Flymake
|
||||||
|
(use-package flymake
|
||||||
|
:when (modulep! +flymake)
|
||||||
|
:defer t
|
||||||
|
:init
|
||||||
|
(add-hook! (prog-mode text-mode) #'flymake-mode)
|
||||||
|
:config
|
||||||
|
(setq flymake-fringe-indicator-position 'right-fringe))
|
||||||
|
|
||||||
|
|
||||||
|
(use-package flymake-popon
|
||||||
|
:when (modulep! +flymake)
|
||||||
|
:hook (flymake-mode . flymake-popon-mode)
|
||||||
|
:config
|
||||||
|
(setq flymake-popon-method (if (modulep! +childframe)
|
||||||
|
'postframe
|
||||||
|
'popon)))
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
;; -*- no-byte-compile: t; -*-
|
;; -*- no-byte-compile: t; -*-
|
||||||
;;; checkers/syntax/packages.el
|
;;; checkers/syntax/packages.el
|
||||||
|
|
||||||
(package! flycheck :pin "784f184cdd9f9cb4e3dbb997c09d93e954142842")
|
(unless (modulep! +flymake)
|
||||||
(package! flycheck-popup-tip :pin "ef86aad907f27ca076859d8d9416f4f7727619c6")
|
(package! flycheck :pin "784f184cdd9f9cb4e3dbb997c09d93e954142842")
|
||||||
(when (modulep! +childframe)
|
(package! flycheck-popup-tip :pin "ef86aad907f27ca076859d8d9416f4f7727619c6")
|
||||||
(package! flycheck-posframe :pin "8f60c9bf124ab9597d681504a73fdf116a0bde12"))
|
(when (modulep! +childframe)
|
||||||
|
(package! flycheck-posframe :pin "8f60c9bf124ab9597d681504a73fdf116a0bde12")))
|
||||||
|
|
||||||
;; TODO flymake?
|
;; Flymake
|
||||||
|
(when (modulep! +flymake)
|
||||||
|
(package! popon :recipe (:repo "https://codeberg.org/akib/emacs-popon"))
|
||||||
|
(package! flymake-popon :recipe (:repo "https://codeberg.org/akib/emacs-flymake-popon")))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue