Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Lualine configurations are not applied #1244

Open
2 tasks done
renatojf opened this issue May 21, 2024 · 2 comments
Open
2 tasks done

Bug: Lualine configurations are not applied #1244

renatojf opened this issue May 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@renatojf
Copy link

renatojf commented May 21, 2024

Self Checks

  • I'm using the latest lualine.
  • 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 renatojf added the bug Something isn't working label May 21, 2024
@iton0
Copy link

iton0 commented May 22, 2024

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.

@renatojf
Copy link
Author

renatojf commented May 22, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants