Merge pull request #185 from horriblename/fix-empty-winbar

fix: disable empty winbar when breadcrumbs are disabled
This commit is contained in:
raf 2023-12-07 07:36:00 +03:00 committed by GitHub
commit 138f75218f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@
... ...
}: let }: let
cfg = config.vim.statusline.lualine; cfg = config.vim.statusline.lualine;
breadcrumbsCfg = config.vim.ui.breadcrumbs;
inherit (lib) mkIf nvim boolToString optionalString; inherit (lib) mkIf nvim boolToString optionalString;
in { in {
config = (mkIf cfg.enable) { config = (mkIf cfg.enable) {
@ -50,7 +51,7 @@ in {
}, },
tabline = {}, tabline = {},
${optionalString (config.vim.ui.breadcrumbs.source == "nvim-navic") '' ${optionalString (breadcrumbsCfg.enable && breadcrumbsCfg.source == "nvim-navic") ''
winbar = { winbar = {
lualine_c = { lualine_c = {
{ {