2023-06-04 13:12:08 +02:00
|
|
|
{lib, ...}:
|
2023-04-05 15:58:56 +02:00
|
|
|
with lib;
|
2023-06-04 13:12:08 +02:00
|
|
|
with builtins; {
|
2023-04-05 15:58:56 +02:00
|
|
|
options.vim.ui.smartcolumn = {
|
2023-06-04 13:12:08 +02:00
|
|
|
enable = mkEnableOption "Enable Smartcolumn line length indicator";
|
2023-04-05 15:58:56 +02:00
|
|
|
|
|
|
|
showColumnAt = mkOption {
|
|
|
|
type = types.nullOr types.int;
|
|
|
|
default = 120;
|
|
|
|
description = "The position at which the column will be displayed. Set to null to disable";
|
|
|
|
};
|
|
|
|
|
|
|
|
disabledFiletypes = mkOption {
|
|
|
|
type = types.listOf types.str;
|
|
|
|
default = ["help" "text" "markdown" "NvimTree" "alpha"];
|
|
|
|
description = "The filetypes smartcolumn will be disabled for.";
|
|
|
|
};
|
2023-04-11 12:57:34 +02:00
|
|
|
|
2023-06-04 13:12:08 +02:00
|
|
|
columnAt = {
|
|
|
|
# TODO: the current implementation only allows for options such as { ruby = "120", java = "120" }
|
|
|
|
# whereas the lua config would allow { ruby = "120", java = { "180", "200"} }, this needs to be fixed in the custom lib
|
|
|
|
languages = lib.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 int;
|
|
|
|
};
|
|
|
|
};
|
2023-04-05 15:58:56 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|