lualine-lsp-progress icon indicating copy to clipboard operation
lualine-lsp-progress copied to clipboard

Option to configure spinner and lsp_client_name to not be hidden

Open snaggen opened this issue 4 years ago • 3 comments

When I use lualine with lsp setup and this extension I get a pretty nice experience, what I miss is an indication if a lsp is active at all. So I think just having an option to not hide the spinner and lsp_client_name would solve this. This would change the semantic of the spinner a little bit to just be an lsp indicator when idle, to indicate a lsp is present and connected with a new icon, then the current spinner when showing progress.

snaggen avatar Nov 09 '21 14:11 snaggen

I was looking for such an option too. Thanks for filing a FR before I could :).

aktau avatar Nov 28 '21 23:11 aktau

I'm not sure if this really fits into this component, since it's only for the status progress.

You can easily add this yourself as a custom component in lualine:

local function lsp_client_names()
	local client_names = {}
	for _, client in ipairs(vim.lsp.get_active_clients()) do
		table.insert(client_names, client.name)
	end
	return table.concat(client_names, ",")
end

require("lualine").setup({
	sections = {
		lualine_a = {
			lsp_client_names
		}
	}
}

syphar avatar Jan 05 '22 06:01 syphar

Hi guys. I have made PR with this option. But since 4 months have passed since the last commit to the repository, I dont know will this request be accepted..

bercly0b avatar Feb 23 '22 14:02 bercly0b