Skip to content

Commit

Permalink
Merge pull request NotAShelf#185 from horriblename/fix-empty-winbar
Browse files Browse the repository at this point in the history
fix: disable empty winbar when breadcrumbs are disabled
  • Loading branch information
NotAShelf authored Dec 7, 2023
2 parents e208946 + f22d66e commit 214f213
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/statusline/lualine/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -50,7 +51,7 @@ in {
},
tabline = {},
${optionalString (config.vim.ui.breadcrumbs.source == "nvim-navic") ''
${optionalString (breadcrumbsCfg.enable && breadcrumbsCfg.source == "nvim-navic") ''
winbar = {
lualine_c = {
{
Expand Down

0 comments on commit 214f213

Please sign in to comment.