Merge pull request #3094 from sei40kr/add-lookup-handlers
tools/lookup: Support lookup handlers for implementations and type definition
This commit is contained in:
commit
59b73121d0
3 changed files with 62 additions and 2 deletions
|
@ -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)))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue