mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-05 13:12:21 +00:00
ui: allow custom listOf str border type
This commit is contained in:
parent
0f17147d52
commit
d3cd9809b2
6 changed files with 15 additions and 13 deletions
|
|
@ -4,7 +4,7 @@
|
|||
...
|
||||
}: let
|
||||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.types) nullOr listOf enum bool str int;
|
||||
inherit (lib.types) nullOr listOf enum bool str int either;
|
||||
inherit (lib.modules) mkRenamedOptionModule;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
mkSimpleIconOption = default:
|
||||
|
|
@ -213,7 +213,7 @@ in {
|
|||
|
||||
border = mkOption {
|
||||
# TODO: let this type accept a custom string
|
||||
type = enum ["single" "rounded" "double" "solid" "none"];
|
||||
type = either (enum ["single" "rounded" "double" "solid" "none"]) (listOf str);
|
||||
default = config.vim.ui.borders.globalStyle;
|
||||
description = "border style to use";
|
||||
};
|
||||
|
|
@ -237,7 +237,7 @@ in {
|
|||
|
||||
border = mkOption {
|
||||
# TODO: let this type accept a custom string
|
||||
type = nullOr (enum ["single" "rounded" "double" "solid" "none"]);
|
||||
type = nullOr (either (enum ["single" "rounded" "double" "solid" "none"]) (listOf str));
|
||||
default = config.vim.ui.borders.globalStyle;
|
||||
description = "border style to use for the left section of Navbuddy UI";
|
||||
};
|
||||
|
|
@ -255,7 +255,7 @@ in {
|
|||
|
||||
border = mkOption {
|
||||
# TODO: let this type accept a custom string
|
||||
type = nullOr (enum ["single" "rounded" "double" "solid" "none"]);
|
||||
type = nullOr (either (enum ["single" "rounded" "double" "solid" "none"]) (listOf str));
|
||||
default = config.vim.ui.borders.globalStyle;
|
||||
description = "border style to use for the middle section of Navbuddy UI";
|
||||
};
|
||||
|
|
@ -266,7 +266,7 @@ in {
|
|||
right = {
|
||||
border = mkOption {
|
||||
# TODO: let this type accept a custom string
|
||||
type = nullOr (enum ["single" "rounded" "double" "solid" "none"]);
|
||||
type = nullOr (either (enum ["single" "rounded" "double" "solid" "none"]) (listOf str));
|
||||
default = config.vim.ui.borders.globalStyle;
|
||||
description = "border style to use for the right section of Navbuddy UI";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue