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,46 +1,102 @@
---@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",
},
opts = {
options = {
theme = "auto",
component_separators = { left = "|", right = "|" },
section_separators = { left = "", right = "" },
disabled_filetypes = {},
always_divide_middle = true,
globalstatus = true,
}, },
sections = { opts = {
lualine_a = { options = {
"mode", theme = "auto",
"spell_status", component_separators = { left = "|", right = "|" },
section_separators = { left = "", right = "" },
disabled_filetypes = {
winbar = {
'neo-tree',
'help',
'snacks_dashboard',
'telescope',
'trouble'
},
},
always_divide_middle = true,
globalstatus = true,
}, },
lualine_b = { sections = {
"branch", lualine_a = {
"diff", "mode",
"diagnostics", "spell_status",
"lsp_status",
},
lualine_b = {
"branch",
"diff",
"diagnostics",
},
lualine_c = {
{ "filename", path = 1 },
{ "filetype", icon_only = true },
},
lualine_x = {
"encoding",
"fileformat",
"filetype",
{ require("lazy.status").updates, cond = require("lazy.status").has_updates },
},
lualine_y = {
"progress",
"searchcount",
},
lualine_z = {
"location",
},
}, },
lualine_c = { tabline = {},
{ "filename", path = 1 }, winbar = {
{ "filetype", icon_only = true }, lualine_a = {
}, {
lualine_x = { "buffers",
"encoding", mode = 3,
"fileformat", show_modified_status = false,
"filetype", icons_enabled = false,
{ require("lazy.status").updates, cond = require("lazy.status").has_updates }, },
}, {
lualine_y = { "filetype",
"progress", icon_only = true,
"searchcount", },
}, {
lualine_z = { "filename",
"location", 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' }
},
}
}
}, },
tabline = {},
}, }
} }