Skip to content

Commit

Permalink
Check acm-backend-lsp-server-names before search LSP rules
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Jun 12, 2024
1 parent f0fedb6 commit 7b1868a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lsp-bridge.el
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,12 @@ So we build this macro to restore postion after code format."
(cond ((and lsp-bridge-enable-org-babel (eq major-mode 'org-mode))
(setq-local acm-is-elisp-mode-in-org nil)
(lsp-bridge-org-babel-check-lsp-server))
;; `acm-backend-lsp-server-names' is set after LSP server start,
;; we don't need search below LSP rules if `acm-backend-lsp-server-names' is set
((and (boundp 'acm-backend-lsp-server-names)
acm-backend-lsp-server-names)
acm-backend-lsp-server-names)
;; Search LSP rules.
(t
(when-let* ((filename (or (ignore-errors (file-truename
(lsp-bridge-get-buffer-file-name-text)))
Expand Down

0 comments on commit 7b1868a

Please sign in to comment.