How can I hide messages with the LSP[metals]
prefix?
#613
-
Hey, there How can I hide messages prefixed with
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @FelipeLema I'm pretty sure this party is simply coming right from Neovim. This is how it handles |
Beta Was this translation helpful? Give feedback.
-
hey, thanks @ckipp01, but setting either or both still is idempotent and I'm still getting those messages printed... could I be missing something else?
local ms = require('vim.lsp.protocol').Methods or {window_logMessage = "window/logMessage"}
local window_logMessage_handler = vim.lsp.handlers[ms.window_logMessage]
vim.lsp.handlers[ms.window_logMessage] = function(err, result, ctx, config)
local cliente = vim.lsp.get_client_by_id(ctx.client_id)
if cliente.name == "metals" then
return result
end
return window_logMessage_handler(err, result, ctx, config)
end
require 'metals.handlers'["metals/status"] = function(...) end |
Beta Was this translation helpful? Give feedback.
All you actually need to do to turn this on is outlined here.