From 5ff75a5196d3ebe3148ca0c8c20ac750664ddfb6 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sun, 13 Nov 2022 23:22:53 +0100 Subject: [PATCH] fix: fix lsp showMessage. Fixes #220 --- lua/noice/lsp/message.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/noice/lsp/message.lua b/lua/noice/lsp/message.lua index 88d723c..f5eba66 100644 --- a/lua/noice/lsp/message.lua +++ b/lua/noice/lsp/message.lua @@ -17,7 +17,7 @@ M.message_type = { ---@alias ShowMessageParams {type:MessageType, message:string} function M.setup() - vim.lsp.handlers["window/showMessage"] = Util.protect(M.message) + vim.lsp.handlers["window/showMessage"] = Util.protect(M.on_message) end ---@param result ShowMessageParams