Noting the lsp-peek handlers as :async

Without this, subsequent handlers registered (e.g. those from other
completion frameworks) will also pop up in addition to the peek UI.
This creates UI lock-up and is generally undesired.
This commit is contained in:
Sam Whitlock 2021-05-20 20:29:08 +02:00
parent ef7113d6c4
commit 01b3e1d8d8
No known key found for this signature in database
GPG key ID: 4DC9F73CED3252EB

View file

@ -170,7 +170,8 @@ instead is more sensible."
(set-lookup-handlers! 'lsp-ui-mode
:definition 'lsp-ui-peek-find-definitions
:implementations 'lsp-ui-peek-find-implementation
:references 'lsp-ui-peek-find-references))
:references 'lsp-ui-peek-find-references
:async t))
(setq lsp-ui-peek-enable (featurep! +peek)
lsp-ui-doc-max-height 8