Function: eglot--snippet-expansion-fn

eglot--snippet-expansion-fn is a byte-compiled function defined in eglot.el.gz.

Signature

(eglot--snippet-expansion-fn)

Documentation

Compute a function to expand snippets.

Doubles as an indicator of snippet support.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defun eglot--snippet-expansion-fn ()
  "Compute a function to expand snippets.
Doubles as an indicator of snippet support."
  (and (fboundp 'yas-minor-mode)
       (lambda (&rest args)
         (with-no-warnings
           (unless (bound-and-true-p yas-minor-mode) (yas-minor-mode 1))
           (apply #'yas-expand-snippet args)))))