mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00: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
|
||||
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 = {
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue