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
|
|
@ -5,7 +5,7 @@
|
|||
}: let
|
||||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.lists) optionals;
|
||||
inherit (lib.types) enum;
|
||||
inherit (lib.types) enum either listOf str;
|
||||
|
||||
cfg = config.vim.ui.borders;
|
||||
|
||||
|
|
@ -15,7 +15,7 @@ in {
|
|||
enable = mkEnableOption "visible borders for most windows";
|
||||
|
||||
globalStyle = mkOption {
|
||||
type = enum defaultStyles;
|
||||
type = either (enum defaultStyles) (listOf str);
|
||||
default = "rounded";
|
||||
description = ''
|
||||
The global border style to use.
|
||||
|
|
@ -28,7 +28,7 @@ in {
|
|||
enable = mkEnableOption "borders for the ${name} plugin" // {default = cfg.enable;};
|
||||
|
||||
style = mkOption {
|
||||
type = enum (defaultStyles ++ optionals (name != "which-key") ["shadow"]);
|
||||
type = either (enum (defaultStyles ++ optionals (name != "which-key") ["shadow"])) (listOf str);
|
||||
default = cfg.globalStyle;
|
||||
description = "The border style to use for the ${name} plugin";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue