mfussenegger / nvim-jdtls

Extensions for the built-in LSP support in Neovim for eclipse.jdt.ls
GNU General Public License v3.0
1.08k stars 62 forks source link

Show message on status bar #595

Closed eeeXun closed 9 months ago

eeeXun commented 9 months ago

Problem Statement

Display the message of loading jdtls or downloading package to status bar instead of command-line.

Ideas or possible solutions

In nvim-metals config example. It provides statusBarProvider to change the settings. Then I can use g:metals_status to show the message on status bar.

mfussenegger commented 9 months ago

You can disable the loading messages in the command-line by overriding the handler:

config.handlers['language/status'] = function() end

To get the messages in the statusline, you can use the vim.lsp.status() function if you're on nightly/0.10. For 0.9 or earlier you have to write a bit of custom logic or use a statusline plugin which provides something out of the box.