Set lsp lookup handlers rather than remapping them
Now that the lookup module has beter deferred handler support.
This commit is contained in:
parent
90922caad0
commit
96ca04d488
2 changed files with 10 additions and 10 deletions
|
@ -96,7 +96,11 @@ argument: the identifier at point.")
|
|||
(after! xref
|
||||
;; We already have `projectile-find-tag' and `evil-jump-to-tag', no need for
|
||||
;; xref to be one too.
|
||||
(remove-hook 'xref-backend-functions #'etags--xref-backend))
|
||||
(remove-hook 'xref-backend-functions #'etags--xref-backend)
|
||||
;; The lookup commands are superior, and will consult xref if there are no
|
||||
;; better backends available.
|
||||
(global-set-key [remap xref-find-definitions] #'+lookup/definition)
|
||||
(global-set-key [remap xref-find-references] #'+lookup/references))
|
||||
|
||||
;; Use `better-jumper' instead of xref's marker stack
|
||||
(advice-add #'xref-push-marker-stack :around #'doom*set-jump)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue