Fix #4771: give lsp-find-* precedence over fallbacks
LSP lookup handlers should have the highest precedence, but this wasn't
the case due to a regression in 430d628
.
This commit is contained in:
parent
ce65645fb8
commit
d4eb7e31ac
3 changed files with 31 additions and 5 deletions
|
@ -212,11 +212,15 @@ This can be passed nil as its second argument to unset handlers for MODES. e.g.
|
|||
|
||||
(defun +lookup-xref-definitions-backend-fn (identifier)
|
||||
"Non-interactive wrapper for `xref-find-definitions'"
|
||||
(+lookup--xref-show 'xref-backend-definitions identifier #'xref--show-defs))
|
||||
(condition-case _
|
||||
(+lookup--xref-show 'xref-backend-definitions identifier #'xref--show-defs)
|
||||
(cl-no-applicable-method nil)))
|
||||
|
||||
(defun +lookup-xref-references-backend-fn (identifier)
|
||||
"Non-interactive wrapper for `xref-find-references'"
|
||||
(+lookup--xref-show 'xref-backend-references identifier #'xref--show-xrefs))
|
||||
(condition-case _
|
||||
(+lookup--xref-show 'xref-backend-references identifier #'xref--show-xrefs)
|
||||
(cl-no-applicable-method nil)))
|
||||
|
||||
(defun +lookup-dumb-jump-backend-fn (_identifier)
|
||||
"Look up the symbol at point (or selection) with `dumb-jump', which conducts a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue