lualine.nvim icon indicating copy to clipboard operation
lualine.nvim copied to clipboard

Bug: Lualine configurations are not applied

Open renatojf opened this issue 1 year ago • 2 comments

Self Checks

  • [X] I'm using the latest lualine.
  • [x] I didn't find the issue in existing issues or PRs.

How to reproduce the problem

Minimal configuration with Lazy. Added Lualine, with the following configurations:

return {
	"nvim-lualine/lualine.nvim",
	dependencies = { "nvim-tree/nvim-web-devicons" },
	wants = {
		"gitsigns.nvim",
		"gruvbox-material",
	},
	config = function()
		local lualine = require("lualine")
		local lazy_status = require("lazy.status") -- to configure lazy pending updates count

		lualine.get_config()

		lualine.setup({
			options = {
				theme = "gruvbox-material",
			},

			sections = {
				lualine_a = { "mode" },
				lualine_b = { "branch", { "diagnostics", sources = { "nvim_diagnostic" } } },
				lualine_c = { { "filename", path = 2 }, { "lsp_progress" } },
				lualine_x = {
					{
						lazy_status.updates,
						cond = lazy_status.has_updates,
						color = { fg = "#ff9e64" },
					},
					{ "encoding" },
					{ "fileformat" },
					{ "filetype" },
				},
			},
		})
	end,
}

It doesn't show up. image

Expected behaviour

I expect the configurations I had would load up in lualine.

Actual behaviour

It shows only the default configurations. image

Additional information

Using latest nvim (0.10.0) and latest lualine with bare minimum configurations. Only Lazy + lualine loading up. Other things are Alacritty and Tmux which I also removed all configurations, to make sure they were not somehow overriding things.

I am just unaware on how to debug this further. Any help is appreciated :)

renatojf avatar May 21 '24 17:05 renatojf

I don't think there is a bug your config is similar to the default config. 'lsp_progress' is not a component (here are available components). You can move Gitsigns to dependencies and delete wants. And I would just read the the whole README.md for lualine. Hope that helps.

iton0 avatar May 22 '24 05:05 iton0

The issue is that the theme is not getting applied and some of the components are not loading correctly (like the git branch, and I am in a git repo)

renatojf avatar May 22 '24 13:05 renatojf