mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 23:16:46 +00:00
dev: match navbuddy component border styles with global border component style
This commit is contained in:
parent
6e3ae75ae8
commit
306eba2302
1 changed files with 21 additions and 7 deletions
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue