Disable flymake in favor of flycheck.

This commit is contained in:
kj
2025-09-04 10:13:43 -03:00
parent 0b6c2058ed
commit 03ee657182

View File

@ -85,17 +85,25 @@
;; Revisar por errores en el código
(use-package flymake
:ensure nil
:hook (prog-mode . (lambda ()
(unless (derived-mode-p 'makefile-mode)
(flymake-mode))))
;; :hook (prog-mode . (lambda ()
;; (unless (derived-mode-p 'makefile-mode)
;; (flymake-mode))))
:init
(remove-hook 'flymake-diagnostic-functions 'flymake-proc-legacy-flymake)
)
;; Mostar los errores de flymake en un popup-tip
(use-package flymake-diagnostic-at-point
:after flymake
:hook (flymake-mode . flymake-diagnostic-at-point-mode))
(use-package flycheck
:init (global-flycheck-mode)
:config
(setq flycheck-indication-mode nil
flycheck-phpcs-standard "PSR12"))
(use-package flycheck-eglot
:after flycheck
:custom
(flycheck-eglot-exclusive nil)
:init
(global-flycheck-eglot-mode 1))
(provide 'init-lsp)
;;; init-lsp.el ends here