fix(lsp): explicitly set xref handlers for eglot

Otherwise a major mode's lookup handlers may take precedence (e.g. in
go-mode).

Close #5329
This commit is contained in:
Nham Le
2021-08-06 14:50:33 +07:00
committed by GitHub
parent e76f5388be
commit 6678f3833b

View File

@ -17,9 +17,11 @@
:config
(set-popup-rule! "^\\*eglot-help" :size 0.15 :quit t :select t)
(set-lookup-handlers! 'eglot--managed-mode
:definition #'xref-find-definitions
:references #'xref-find-references
:implementations #'eglot-find-implementation
:type-definition #'eglot-find-typeDefinition
:documentation #'+eglot-lookup-documentation)
:documentation #'+eglot-lookup-documentation)
(add-to-list 'doom-debug-variables '(eglot-events-buffer-size . 0))