Skip to content

Commit

Permalink
fix: showMessage error with kinds. Fixes #222
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 14, 2022
1 parent c14b064 commit d4d653a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/lsp/message.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function M.on_message(_, result, ctx)
local client = vim.lsp.get_client_by_id(client_id)
local client_name = client and client.name or string.format("lsp id=%d", client_id)

local message = Message(M.event, M.kinds.message, result.message)
local message = Message(M.event, "message", result.message)
message.opts.title = "LSP Message (" .. client_name .. ")"
for level, type in pairs(M.message_type) do
if type == result.type then
Expand Down

0 comments on commit d4d653a

Please sign in to comment.