Skip to content

Commit f80213d

Browse files
committed
Add lsp-bridge
1 parent 7668c03 commit f80213d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: lisp/php-ide.el

+6
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
@@ -93,6 +95,7 @@
9395
(require 'cl-lib)
9496
(require 'php-ide-phpactor)
9597
(defvar eglot-server-programs)
98+
(declare-function lsp-bridge-mode "ext:lsp-bridge" ())
9699
(declare-function eglot-ensure "ext:eglot" ())
97100
(declare-function eglot--managed-mode-off "ext:eglot" ())
98101
(declare-function phpactor--find-executable "ext:phpactor" ()))
@@ -107,6 +110,9 @@
107110
(eglot :test (lambda () (and (require 'eglot nil t) (featurep 'eglot)))
108111
:activate eglot-ensure
109112
:deactivate eglot--managed-mode-off)
113+
(lsp-bridge :test (lambda () (and (require 'lsp-bridge nil t) (featurep 'lsp-bridge)))
114+
:activate (lambda () (lsp-bridge-mode +1))
115+
:deactivate (lambda () (lsp-bridge-mode -1)))
110116
(lsp-mode :test (lambda () (and (require 'lsp nil t) (featurep 'lsp)))
111117
:activate lsp
112118
:deactivate lsp-workspace-shutdown)))

0 commit comments

Comments
 (0)