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]: E5108 - Segments must be a list when opening latest Neovim #727

Closed
1 task done
hood opened this issue Apr 14, 2023 · 1 comment
Closed
1 task done

[Bug]: E5108 - Segments must be a list when opening latest Neovim #727

hood opened this issue Apr 14, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@hood
Copy link
Contributor

hood commented Apr 14, 2023

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

I'm getting the following error when opening Neovim:

E5108: Error executing lua ...onfig/nvim/plugged/bufferline.nvim/lua/bufferline/ui.lua:132: Segments must be a list
stack traceback:
        [C]: in function 'assert'
        ...onfig/nvim/plugged/bufferline.nvim/lua/bufferline/ui.lua:132: in function 'get_component_size'
        ...onfig/nvim/plugged/bufferline.nvim/lua/bufferline/ui.lua:504: in function <...onfig/nvim/plugged/bufferline.nvim/lua/bufferline/ui.lua:485>
        vim/shared.lua: in function 'get_components'
        .../.config/nvim/plugged/bufferline.nvim/lua/bufferline.lua:85: in function <.../.config/nvim/plugged/bufferline.nvim/lua/bufferline.lua:81>           

What did you expect to happen?

I'd expect the plugin to not throw any errors.

Config

require("bufferline").setup({
	options = {
		numbers = "none",
		indicator = {
			style = "icon",
			icon = ">",
		},
		color_icons = true,
		show_buffer_icons = true,
		buffer_close_icon = "X",
		close_icon = "x",
		modified_icon = "*",
		left_trunc_marker = "",
		right_trunc_marker = "",
		max_name_length = 18,
		max_prefix_length = 15,
		tab_size = 18,
		diagnostics = "nvim_lsp",
		diagnostics_update_in_insert = false,
		separator_style = "thin",
		enforce_regular_tabs = false,
		always_show_bufferline = true,
		offsets = {
			{
				filetype = "NvimTree",
				text = "NVIMTree",
				separator = true,
				text_align = "center",
			},
		},
	},
	highlights = {
		separator_selected = {
			bg = "#1e222a",
			fg = "#ff222a",
		},
	},
})

Additional Information

Neovim version: NVIM v0.10.0-dev-74+gae9654dd7

commit

ef4fdc5 (latest)

@hood hood added the bug Something isn't working label Apr 14, 2023
@akinsho
Copy link
Owner

akinsho commented Apr 14, 2023

This should now be fixed on the latest commit of the plugin. Will do a release later, once I'm sure nothing else broke

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