feat(lualine): enable winbar support

This also refactors the spec to fit all the other ones
This commit is contained in:
Robert Morrison 2026-04-10 02:53:58 +01:00
parent 25a9d2ba11
commit bbe189d70b

View File

@ -1,5 +1,7 @@
---@module "lazy.nvim"
---@type LazySpec[]
return { return {
"nvim-lualine/lualine.nvim", {"nvim-lualine/lualine.nvim",
dependencies = { dependencies = {
"nvim-tree/nvim-web-devicons", "nvim-tree/nvim-web-devicons",
"sherlock5512/lualine-spell-status", "sherlock5512/lualine-spell-status",
@ -9,7 +11,15 @@ return {
theme = "auto", theme = "auto",
component_separators = { left = "|", right = "|" }, component_separators = { left = "|", right = "|" },
section_separators = { left = "", right = "" }, section_separators = { left = "", right = "" },
disabled_filetypes = {}, disabled_filetypes = {
winbar = {
'neo-tree',
'help',
'snacks_dashboard',
'telescope',
'trouble'
},
},
always_divide_middle = true, always_divide_middle = true,
globalstatus = true, globalstatus = true,
}, },
@ -17,6 +27,7 @@ return {
lualine_a = { lualine_a = {
"mode", "mode",
"spell_status", "spell_status",
"lsp_status",
}, },
lualine_b = { lualine_b = {
"branch", "branch",
@ -42,5 +53,50 @@ return {
}, },
}, },
tabline = {}, tabline = {},
winbar = {
lualine_a = {
{
"buffers",
mode = 3,
show_modified_status = false,
icons_enabled = false,
},
{
"filetype",
icon_only = true,
},
{
"filename",
file_status = false,
newfile_status = false,
path = 0,
symbols = {
modified = '',
readonly = '',
unnamed = '',
newfile = '',
},
},
},
},
winbar_inactive = {
lualine_a = {
{
"filename",
file_status = false,
newfile_status = false,
path = 0,
symbols = {
modified = '',
readonly = '',
unnamed = '',
newfile = '',
},
disabled_filetypes = { 'neo-tree' }
}, },
} }
}
},
}
}