added php

This commit is contained in:
hermades 2025-05-30 23:08:20 -04:00
parent 08223cbc72
commit 22c81f3691
2 changed files with 24 additions and 3 deletions

View File

@ -95,11 +95,13 @@
;; lsp,flycheck and company
(use-package lsp-mode
:ensure t
:init
(add-hook 'c-mode-hook 'lsp-deferred))
:hook ((c-mode . lsp)
(php-mode . lsp))
:commands lsp)
(use-package lsp-ui
:ensure t
:requires lsp-mode flycheck
:after lsp-mode
:custom
(setq lsp-ui-sideline-show-diagnostics t
@ -107,11 +109,20 @@
lsp-ui-sideline-show-code-actions t
lsp-ui-sideline-update-mode 'point
lsp-ui-sideline-delay 0.1
lsp-ui-sideline-enable t
lsp-ui-peek-enable t
lsp-ui-doc-show-with-cursor t)
lsp-ui-peek-list-width 60
lsp-ui-peek-peek-height 25
lsp-ui-doc-show-with-cursor t
lsp-ui-doc-enable t
lsp-ui-doc-use-childframe t
lsp-ui-doc-position 'top
lsp-ui-doc-include-signature t
lsp-ui-flycheck-list-position 'right)
:custom
(define-key lsp-ui-mode-map [remap xref-find-definitions] #'lsp-ui-peek-find-definitions)
(define-key lsp-ui-mode-map [remap xref-find-references] #'lsp-ui-peek-find-references))
(add-hook 'lsp-mode-hook 'lsp-ui-mode)
(use-package flycheck
:ensure

View File

@ -1,5 +1,15 @@
;; for html
(use-package emmet-mode
:ensure t
:hook (sgml-mode . emmet-mode))
;; for laravel
(use-package php-mode
:ensure t
:mode ("\\.php\\'" . php-mode))
(add-to-list 'auto-mode-alist '("\\.php$" . php-mode))
(use-package phpunit
:ensure t)
(provide 'setup-web)