mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 10:59:49 +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
|
{lib, ...}: let
|
||||||
inherit (lib) mkEnableOption mkOption types;
|
inherit (lib) mkEnableOption mkOption types literalExpression;
|
||||||
in {
|
in {
|
||||||
options.vim.ui.smartcolumn = {
|
options.vim.ui.smartcolumn = {
|
||||||
enable = mkEnableOption "line length indicator";
|
enable = mkEnableOption "line length indicator";
|
||||||
|
@ -17,20 +17,19 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
columnAt = {
|
columnAt = {
|
||||||
languages = lib.mkOption {
|
languages = mkOption {
|
||||||
description = "The position at which smart column should be displayed for each individual buffer type";
|
description = "The position at which smart column should be displayed for each individual buffer type";
|
||||||
type = lib.types.submodule {
|
type = types.submodule {
|
||||||
freeformType = with lib.types; attrsOf (either int (listOf int));
|
freeformType = with types; attrsOf (either int (listOf int));
|
||||||
};
|
};
|
||||||
|
|
||||||
example = lib.literalExpression ''
|
example = literalExpression ''
|
||||||
vim.ui.smartcolumn.columnAt.languages = {
|
vim.ui.smartcolumn.columnAt.languages = {
|
||||||
nix = 110;
|
nix = 110;
|
||||||
ruby = 120;
|
ruby = 120;
|
||||||
java = 130;
|
java = 130;
|
||||||
go = [90 130];
|
go = [90 130];
|
||||||
};
|
};
|
||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue