From 306eba2302b54a0335cf2899953d0992d86dbd83 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 28 Jul 2023 15:59:16 +0300 Subject: [PATCH] dev: match navbuddy component border styles with global border component style --- modules/ui/breadcrumbs/breadcrumbs.nix | 28 +++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/modules/ui/breadcrumbs/breadcrumbs.nix b/modules/ui/breadcrumbs/breadcrumbs.nix index b27f617..b220538 100644 --- a/modules/ui/breadcrumbs/breadcrumbs.nix +++ b/modules/ui/breadcrumbs/breadcrumbs.nix @@ -8,7 +8,7 @@ in { options.vim.ui.breadcrumbs = { enable = lib.mkEnableOption "breadcrumbs"; source = mkOption { - type = types.enum ["nvim-navic" "lspsaga"]; + type = types.enum ["nvim-navic"]; # TODO: lspsaga and dropbar default = "nvim-navic"; description = '' The source to be used for breadcrumbs component @@ -186,7 +186,7 @@ in { border = mkOption { # TODO: let this type accept a custom string type = types.enum ["single" "rounded" "double" "solid" "none"]; - default = "single"; + default = config.vim.ui.borders.globalStyle; description = "border style to use"; }; @@ -199,22 +199,36 @@ in { sections = { # left section left = { - #size = {} + /* + size = { + type = with types; nullOr (intBetween 0 100); + default = null; + description = "size of the left section of Navbuddy UI in percentage (0-100)"; + }; + */ + border = mkOption { # TODO: let this type accept a custom string type = with types; nullOr (enum ["single" "rounded" "double" "solid" "none"]); - default = null; + default = config.vim.ui.borders.globalStyle; description = "border style to use for the left section of Navbuddy UI"; }; }; # middle section mid = { - #size = {} + /* + size = { + type = with types; nullOr (intBetween 0 100); + default = null; + description = "size of the left section of Navbuddy UI in percentage (0-100)"; + }; + */ + border = mkOption { # TODO: let this type accept a custom string type = with types; nullOr (enum ["single" "rounded" "double" "solid" "none"]); - default = null; + default = config.vim.ui.borders.globalStyle; description = "border style to use for the middle section of Navbuddy UI"; }; }; @@ -225,7 +239,7 @@ in { border = mkOption { # TODO: let this type accept a custom string type = with types; nullOr (enum ["single" "rounded" "double" "solid" "none"]); - default = null; + default = config.vim.ui.borders.globalStyle; description = "border style to use for the right section of Navbuddy UI"; };