From 5a2b13c2919c45e56bdb8e806fcd59920462e265 Mon Sep 17 00:00:00 2001 From: Frothy <76622149+FrothyMarrow@users.noreply.github.com> Date: Fri, 21 Jul 2023 12:59:45 -0400 Subject: [PATCH 1/2] fix: display winbar even when it is empty --- 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 30503ab..d81e2de 100644 --- a/modules/statusline/lualine/config.nix +++ b/modules/statusline/lualine/config.nix @@ -54,7 +54,8 @@ in { { "navic", color_correction = nil, - navic_opts = nil + navic_opts = nil, + draw_empty = true } } }, From 260f9e7e8bcd4b01a8d6ab8f7535d991e97224bc Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 21 Jul 2023 22:35:05 +0300 Subject: [PATCH 2/2] dev: make the permanent rendering of breadcrumbs optional --- modules/statusline/lualine/config.nix | 2 +- modules/ui/breadcrumbs/breadcrumbs.nix | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/statusline/lualine/config.nix b/modules/statusline/lualine/config.nix index d81e2de..2f8b962 100644 --- a/modules/statusline/lualine/config.nix +++ b/modules/statusline/lualine/config.nix @@ -55,7 +55,7 @@ in { "navic", color_correction = nil, navic_opts = nil, - draw_empty = true + draw_empty = ${toString config.vim.ui.breadcrumbs.alwaysRender} } } }, diff --git a/modules/ui/breadcrumbs/breadcrumbs.nix b/modules/ui/breadcrumbs/breadcrumbs.nix index b824674..a14bc5f 100644 --- a/modules/ui/breadcrumbs/breadcrumbs.nix +++ b/modules/ui/breadcrumbs/breadcrumbs.nix @@ -8,6 +8,14 @@ in { options.vim.ui.breadcrumbs = { enable = lib.mkEnableOption "breadcrumbs"; + # maybe this should be an option to *disable* alwaysRender optionally but oh well + # too late + alwaysRender = mkOption { + type = types.bool; + default = true; + description = "Whether to always display the breadcrumbs component on winbar (always renders winbar)"; + }; + navbuddy = { enable = mkEnableOption "navbuddy LSP UI"; useDefaultMappings = mkEnableOption "default Navbuddy keybindings (disables user keybinds)";