Skip to content

Commit

Permalink
ui/smartcolumn: inherit library function from lib
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAShelf committed Nov 7, 2023
1 parent c4a2a6d commit b497295
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions modules/ui/smartcolumn/smartcolumn.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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];
};
'';
};
};
Expand Down

0 comments on commit b497295

Please sign in to comment.