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:
parent
5de5d36cab
commit
9f7d45b489
1 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue