From b4972956a29696a6846678ff5e5dcd2121948b84 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 7 Nov 2023 14:24:11 +0300 Subject: [PATCH] ui/smartcolumn: inherit library function from `lib` --- modules/ui/smartcolumn/smartcolumn.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/ui/smartcolumn/smartcolumn.nix b/modules/ui/smartcolumn/smartcolumn.nix index 5d25c6eb8..a1054639c 100644 --- a/modules/ui/smartcolumn/smartcolumn.nix +++ b/modules/ui/smartcolumn/smartcolumn.nix @@ -1,5 +1,5 @@ {lib, ...}: let - inherit (lib) mkEnableOption mkOption types; + inherit (lib) mkEnableOption mkOption types literalExpression; in { options.vim.ui.smartcolumn = { enable = mkEnableOption "line length indicator"; @@ -17,20 +17,19 @@ in { }; columnAt = { - languages = lib.mkOption { + languages = mkOption { description = "The position at which smart column should be displayed for each individual buffer type"; - type = lib.types.submodule { - freeformType = with lib.types; attrsOf (either int (listOf int)); + type = types.submodule { + freeformType = with types; attrsOf (either int (listOf int)); }; - example = lib.literalExpression '' + example = literalExpression '' vim.ui.smartcolumn.columnAt.languages = { nix = 110; ruby = 120; java = 130; go = [90 130]; }; - ''; }; };