mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
This autodef was never intended to be interactive. Use `lsp` or `eglot` if you need an interactive variant.
13 lines
436 B
EmacsLisp
13 lines
436 B
EmacsLisp
;;; tools/lsp/autoload/common.el -*- lexical-binding: t; -*-
|
|
|
|
;;;###autodef (fset 'lsp! #'ignore)
|
|
(defun lsp! ()
|
|
"Dispatch to call the currently used lsp client entrypoint"
|
|
(if (modulep! +eglot)
|
|
(when (require 'eglot nil t)
|
|
(if (eglot--lookup-mode major-mode)
|
|
(eglot-ensure)
|
|
(eglot--message "No client defined for %s" major-mode)))
|
|
(unless (bound-and-true-p lsp-mode)
|
|
(lsp-deferred))))
|