feat(emacs): add psalm integration for php-mode

Add the flycheck-psalm package and also add `.phpstub` files to be treated as
php files so we get all of the lsp and and syntax highlighting
This commit is contained in:
Ade Attwood 2021-11-21 14:57:14 +00:00
parent 5de5d36cab
commit 9f7d45b489

View file

@ -6,9 +6,14 @@
;; licence that can be found in the LICENCE file or at
;; https://www.practically.io/copyright/
(use-package php-mode
:ensure t
:mode "\\.php\\'")
:hook ((php-mode . (lambda() (setq flycheck-local-checkers '((lsp . ((next-checkers . (php))))))))
(php-mode . lsp-deferred)
(php-mode . tree-sitter-hl-mode))
:mode
(("\\.php\\'" . php-mode)
("\\.phpstub\\'" . php-mode)))
(use-package flycheck-psalm :ensure t)