Merge pull request #3094 from sei40kr/add-lookup-handlers

tools/lookup: Support lookup handlers for implementations and type definition
This commit is contained in:
Henrik Lissner
2020-05-14 04:21:24 -04:00
committed by GitHub
3 changed files with 62 additions and 2 deletions

View File

@@ -54,6 +54,8 @@ working on that project after closing the last buffer.")
(set-lookup-handlers! 'lsp-mode :async t
:documentation #'lsp-describe-thing-at-point
:definition #'lsp-find-definition
:implementations #'lsp-find-implementation
:type-definition #'lsp-find-type-definition
:references #'lsp-find-references)
;; TODO Lazy load these. They don't need to be loaded all at once unless the
@@ -193,6 +195,7 @@ auto-killed (which is a potentially expensive process)."
(when (featurep! +peek)
(set-lookup-handlers! 'lsp-ui-mode :async t
:definition 'lsp-ui-peek-find-definitions
:implementations 'lsp-ui-peek-find-implementation
:references 'lsp-ui-peek-find-references)))