fix(lsp): enable flycheck-eglot only in PHP buffers managed by eglot
This commit is contained in:
@@ -91,8 +91,13 @@
|
|||||||
:after flycheck
|
:after flycheck
|
||||||
:custom
|
:custom
|
||||||
(flycheck-eglot-exclusive nil)
|
(flycheck-eglot-exclusive nil)
|
||||||
:init
|
:config
|
||||||
(global-flycheck-eglot-mode 1))
|
;; Activar solo en buffers PHP gestionados por eglot: en el resto (p.ej. Go)
|
||||||
|
;; dejar que Eglot use flymake nativo y evitar la recursión de flycheck-eglot.
|
||||||
|
(add-hook 'eglot-managed-mode-hook
|
||||||
|
(lambda ()
|
||||||
|
(when (derived-mode-p 'php-mode 'php-ts-mode)
|
||||||
|
(flycheck-eglot-mode 1)))))
|
||||||
|
|
||||||
(use-package flycheck-popup-tip
|
(use-package flycheck-popup-tip
|
||||||
:hook (flycheck-mode . flycheck-popup-tip-mode))
|
:hook (flycheck-mode . flycheck-popup-tip-mode))
|
||||||
|
|||||||
Reference in New Issue
Block a user