mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 09:49:48 +01:00
fix: disable empty winbar when breadcrumbs are disabled
This commit is contained in:
parent
99fbf9cad0
commit
dd96499826
1 changed files with 2 additions and 1 deletions
|
@ -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 = {
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue