Skip to content

Commit e45fa07

Browse files
committed
Add lsp-bridge
1 parent bb5bec3 commit e45fa07

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lisp/php-ide.el

+7-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
;; Does not launch any IDE features.
4444
;; - eglot
4545
;; https://github.com/joaotavora/eglot
46+
;; - lsp-bridge
47+
;; https://github.com/manateelazycat/lsp-bridge
4648
;; - lsp-mode
4749
;; https://emacs-lsp.github.io/lsp-mode/
4850
;; https://github.com/emacs-lsp/lsp-mode
@@ -88,6 +90,7 @@
8890
(require 'cl-lib)
8991
(require 'php-ide-phpactor)
9092
(defvar eglot-server-programs)
93+
(declare-function lsp-bridge-mode "ext:lsp-bridge" ())
9194
(declare-function eglot-ensure "ext:eglot" ())
9295
(declare-function eglot--managed-mode-off "ext:eglot" ())
9396
(declare-function phpactor--find-executable "ext:phpactor" ()))
@@ -102,6 +105,9 @@
102105
(eglot :test (lambda () (and (require 'eglot nil t) (featurep 'eglot)))
103106
:activate eglot-ensure
104107
:deactivate eglot--managed-mode-off)
108+
(lsp-bridge :test (lambda () (and (require 'lsp-bridge nil t) (featurep 'lsp-bridge)))
109+
:activate (lambda () (lsp-bridge-mode +1))
110+
:deactivate (lambda () (lsp-bridge-mode -1)))
105111
(lsp-mode :test (lambda () (and (require 'lsp nil t) (featurep 'lsp)))
106112
:activate lsp
107113
:deactivate lsp-workspace-shutdown)))
@@ -161,7 +167,7 @@
161167
(defun php-ide-turn-on ()
162168
"Turn on PHP IDE-FEATURES and execute `php-ide-mode'."
163169
(unless php-ide-features
164-
(user-error "No PHP-IDE feature is installed. Install the lsp-mode, eglot or phpactor package"))
170+
(user-error "No PHP-IDE feature is installed. Install the lsp-mode, lsp-bridge, eglot or phpactor package"))
165171
(php-ide-mode +1))
166172

167173
(defun php-ide--activate-buffer (name ide-plist)

0 commit comments

Comments
 (0)