dev: match navbuddy component border styles with global border component style

This commit is contained in:
raf 2023-07-28 15:59:16 +03:00
parent 6e3ae75ae8
commit 306eba2302
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29

View file

@ -8,7 +8,7 @@ in {
options.vim.ui.breadcrumbs = { options.vim.ui.breadcrumbs = {
enable = lib.mkEnableOption "breadcrumbs"; enable = lib.mkEnableOption "breadcrumbs";
source = mkOption { source = mkOption {
type = types.enum ["nvim-navic" "lspsaga"]; type = types.enum ["nvim-navic"]; # TODO: lspsaga and dropbar
default = "nvim-navic"; default = "nvim-navic";
description = '' description = ''
The source to be used for breadcrumbs component The source to be used for breadcrumbs component
@ -186,7 +186,7 @@ in {
border = mkOption { border = mkOption {
# TODO: let this type accept a custom string # TODO: let this type accept a custom string
type = types.enum ["single" "rounded" "double" "solid" "none"]; type = types.enum ["single" "rounded" "double" "solid" "none"];
default = "single"; default = config.vim.ui.borders.globalStyle;
description = "border style to use"; description = "border style to use";
}; };
@ -199,22 +199,36 @@ in {
sections = { sections = {
# left section # left section
left = { 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 { border = mkOption {
# TODO: let this type accept a custom string # TODO: let this type accept a custom string
type = with types; nullOr (enum ["single" "rounded" "double" "solid" "none"]); 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"; description = "border style to use for the left section of Navbuddy UI";
}; };
}; };
# middle section # middle section
mid = { 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 { border = mkOption {
# TODO: let this type accept a custom string # TODO: let this type accept a custom string
type = with types; nullOr (enum ["single" "rounded" "double" "solid" "none"]); 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"; description = "border style to use for the middle section of Navbuddy UI";
}; };
}; };
@ -225,7 +239,7 @@ in {
border = mkOption { border = mkOption {
# TODO: let this type accept a custom string # TODO: let this type accept a custom string
type = with types; nullOr (enum ["single" "rounded" "double" "solid" "none"]); 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"; description = "border style to use for the right section of Navbuddy UI";
}; };