From 01b3e1d8d8aec12285d64e35a1fe80a41076e9c0 Mon Sep 17 00:00:00 2001 From: Sam Whitlock <433170+samwhitlock@users.noreply.github.com> Date: Thu, 20 May 2021 20:29:08 +0200 Subject: [PATCH] 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. --- modules/tools/lsp/+lsp.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/tools/lsp/+lsp.el b/modules/tools/lsp/+lsp.el index 2054c6bc4..1f7084492 100644 --- a/modules/tools/lsp/+lsp.el +++ b/modules/tools/lsp/+lsp.el @@ -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