Skip to content

Commit

Permalink
Noting the lsp-peek handlers as :async
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
samwhitlock committed May 20, 2021
1 parent ef7113d commit 01b3e1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/tools/lsp/+lsp.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01b3e1d

Please sign in to comment.