From dd96499826642c952829b5ecc2d5c689799c115d Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Thu, 7 Dec 2023 02:31:08 +0100 Subject: [PATCH] fix: disable empty winbar when breadcrumbs are disabled --- modules/statusline/lualine/config.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/statusline/lualine/config.nix b/modules/statusline/lualine/config.nix index bf33e13..986db00 100644 --- a/modules/statusline/lualine/config.nix +++ b/modules/statusline/lualine/config.nix @@ -4,6 +4,7 @@ ... }: let cfg = config.vim.statusline.lualine; + breadcrumbsCfg = config.vim.ui.breadcrumbs; inherit (lib) mkIf nvim boolToString optionalString; in { config = (mkIf cfg.enable) { @@ -50,7 +51,7 @@ in { }, tabline = {}, - ${optionalString (config.vim.ui.breadcrumbs.source == "nvim-navic") '' + ${optionalString (breadcrumbsCfg.enable && breadcrumbsCfg.source == "nvim-navic") '' winbar = { lualine_c = { {