barbar.nvim
barbar.nvim copied to clipboard
[bug]: doesn't work on native windows 11 with LazyVim
Description
So my bufferline doesn't work on LazyVim with native windows 11, is there any way to fix it? But it does load when I check with :Lazy
To Reproduce
tabline.lua
return {
{
"akinsho/bufferline.nvim",
enabled = false,
},
{
"romgrk/barbar.nvim",
event = "VeryLazy",
init = function()
vim.g.barbar_auto_setup = true
end,
config = function()
require("barbar").setup({
animation = true,
auto_hide = false,
tabpages = true,
clickable = true,
focus_on_close = "left",
highlight_alternate = false,
highlight_inactive_file_icons = false,
highlight_visible = false,
icons = {
buffer_index = false,
buffer_number = false,
button = "×",
diagnostics = {
[vim.diagnostic.severity.ERROR] = { enabled = true },
[vim.diagnostic.severity.WARN] = { enabled = true },
[vim.diagnostic.severity.INFO] = { enabled = true },
[vim.diagnostic.severity.HINT] = { enabled = true },
},
gitsigns = {
added = { enabled = true, icon = "[+]" },
changed = { enabled = true, icon = "[~]" },
deleted = { enabled = true, icon = "[-]" },
},
filetype = {
custom_colors = false,
enabled = true,
},
separator = { left = "▎", right = "" },
separator_at_end = false,
modified = { button = "●" },
pinned = { button = "", filename = true },
preset = "default",
alternate = { filetype = { enabled = false } },
current = { buffer_index = false },
inactive = { button = "×" },
visible = { modified = { buffer_number = false } },
},
insert_at_end = false,
insert_at_start = false,
maximum_padding = 1,
minimum_padding = 1,
maximum_length = 30,
minimum_length = 0,
semantic_letters = true,
sidebar_filetypes = {
["neo-tree"] = {
event = "BufWipeout",
text = "Explorer",
align = "left",
},
},
letters = "asdfjkl;ghnmxcvbziowerutyqpASDFJKLGHNMXCVBZIOWERUTYQP",
no_name_title = nil,
})
end,
},
}
Informations Neovim version: v0.11.0-dev-1092+g0da4d89558
Proof https://github.com/user-attachments/assets/e62ecd74-8227-4a70-b2c4-ca2314a70020
I don't think I can debug this, I don't have a windows 11 machine to test with. Have you tried enabling barbar manually with :BarbarEnable? What's the output? Do the barbar modules show something, e.g. :=require('barbar.state')?
Is the event = 'VeryLazy' preventing it from loading?
lazy = false instead of event