mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-07 14:55:59 +01:00
ui/smartcolumn: inherit library function from lib
This commit is contained in:
parent
c4a2a6dcfc
commit
b4972956a2
1 changed files with 5 additions and 6 deletions
|
@ -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];
|
||||
};
|
||||
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue