Skip to content

Commit 664667b

Browse files
njhoffmantris203
andcommitted
fix(showMessage): use on_message handler instead of _on_message
Fixes typo where M._on_message (undefined) was assigned as the LSP handler instead of M.on_message. LSP window/showMessage was silently broken. From upstream PR folke/noice.nvim#1103 Co-Authored-By: tris203 <tris203@users.noreply.github.com>
1 parent 6b8fe6b commit 664667b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/noice/lsp/message.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ M.message_type = {
1717
---@alias ShowMessageParams {type:MessageType, message:string}
1818

1919
function M.setup()
20-
vim.lsp.handlers["window/showMessage"] = M._on_message
20+
vim.lsp.handlers["window/showMessage"] = M.on_message
2121
end
2222

2323
---@param result ShowMessageParams

0 commit comments

Comments
 (0)