Jlchong3
Jlchong3

Reputation: 19

How do I hide lsp process messages in neovim?

In the neovim text editor, with my LSP configuration, I see messages in the bottom-right corner of the window.

lsp message

I find them really distracting while trying to code.

I couldn't find any reference to those messages in the documentation.

Does someone know how to hide them?

Upvotes: 0

Views: 1107

Answers (2)

Mahmoud Elnaggar
Mahmoud Elnaggar

Reputation: 1

I also had this problem and I found that this messages is coming from noice plugin not the LSP itself you may be using another plugin that shows messages but here are the lines that I commented to disable these messages it may help you

return {
"folke/noice.nvim",
event = "VeryLazy",
dependencies = {
    "MunifTanjim/nui.nvim",
    "rcarriga/nvim-notify",
},
-- config = function()
--  require("noice").setup({
--      cmdline = {
--          enabled = true, -- Show the command line in a floating UI
--      },
--      messages = {
--          enabled = false, -- Disable message spam at the bottom
--      },
--      lsp = {
--          override = {
--              ["vim.lsp.util.convert_input_to_markdown_lines"] = true,
--              ["vim.lsp.util.stylize_markdown"] = true,
--              ["cmp.entry.get_documentation"] = true,
--          },
--      },
--  })
-- end,
}

Upvotes: 0

Nitesh
Nitesh

Reputation: 52

It might be the work of one of the plugins you have installed. You can check and edit the configuration file with the features you want and disable the rest of them.

Upvotes: 2

Related Questions