Fix void-function xref--show-defs error

When looking up some xref backends (e.g. tide).
This commit is contained in:
Henrik Lissner 2020-10-15 18:13:10 -04:00
parent f102063f93
commit 8ba2b9eafa
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -180,6 +180,7 @@ This can be passed nil as its second argument to unset handlers for MODES. e.g.
;;
;;; Lookup backends
(autoload 'xref--show-defs "xref")
(defun +lookup--xref-show (fn identifier &optional show-fn)
(let ((xrefs (funcall fn
(xref-find-backend)