mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
tools/lsp: use xref backend as lookup handler
If lsp-find-{definition,references} fails, it will properly fall through to other lookup handlers (like dumb-jump). Fix #4662 Fix #4739
This commit is contained in:
@ -57,11 +57,11 @@ about it (it will be logged to *Messages* however).")
|
|||||||
|
|
||||||
(set-popup-rule! "^\\*lsp-help" :size 0.35 :quit t :select t)
|
(set-popup-rule! "^\\*lsp-help" :size 0.35 :quit t :select t)
|
||||||
(set-lookup-handlers! 'lsp-mode :async t
|
(set-lookup-handlers! 'lsp-mode :async t
|
||||||
|
;; NOTE :definitions and :references aren't needed. LSP is integrated into
|
||||||
|
;; xref, which the lookup module has first class support for.
|
||||||
:documentation #'lsp-describe-thing-at-point
|
:documentation #'lsp-describe-thing-at-point
|
||||||
:definition #'lsp-find-definition
|
|
||||||
:implementations #'lsp-find-implementation
|
:implementations #'lsp-find-implementation
|
||||||
:type-definition #'lsp-find-type-definition
|
:type-definition #'lsp-find-type-definition)
|
||||||
:references #'lsp-find-references)
|
|
||||||
|
|
||||||
(defadvice! +lsp--respect-user-defined-checkers-a (orig-fn &rest args)
|
(defadvice! +lsp--respect-user-defined-checkers-a (orig-fn &rest args)
|
||||||
"Ensure user-defined `flycheck-checker' isn't overwritten by `lsp'."
|
"Ensure user-defined `flycheck-checker' isn't overwritten by `lsp'."
|
||||||
|
Reference in New Issue
Block a user