nvim-lua / lsp-status.nvim

Utility functions for getting diagnostic status and progress messages from LSP servers, for use in the Neovim statusline
MIT License
628 stars 40 forks source link

Statusline detail setting #14

Closed amikai closed 4 years ago

amikai commented 4 years ago

The readme show the example image like this:

Could you give the full setting about this? thanks.

wbthomason commented 4 years ago

Per https://github.com/nvim-lua/lsp-status.nvim#lsp-statusline-segment, all you need to do to get the "default" statusline segment is to call lsp_status.status() somewhere in your statusline definition.

amikai commented 4 years ago

Does it mean i just do set statusline=%{LspStatus()}?

wbthomason commented 4 years ago

That will be fine if you (1) don't want anything else in your statusline and (2) have the LspStatus function from the example in this repo defined in your config.

amikai commented 4 years ago

I got it. Thanks