mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-30 00:26:45 +00:00
Merge pull request #185 from horriblename/fix-empty-winbar
fix: disable empty winbar when breadcrumbs are disabled
This commit is contained in:
commit
138f75218f
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