2023-04-05 13:58:56 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib;
|
|
|
|
with builtins; let
|
|
|
|
languageOpts = {
|
|
|
|
columnAt = mkOption {
|
|
|
|
type = types.nullOr types.int;
|
|
|
|
default = 80;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
options.vim.ui.smartcolumn = {
|
|
|
|
enable = mkEnableOption "Enable smartcolumn line length indicator";
|
|
|
|
|
|
|
|
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 10:57:34 +00:00
|
|
|
|
2023-04-05 13:58:56 +00:00
|
|
|
/*
|
|
|
|
languages = mkOption {
|
|
|
|
default = {};
|
|
|
|
description = "Language specific configuration.";
|
|
|
|
type = with types;
|
|
|
|
attrsOf (submodule {
|
2023-04-11 10:49:48 +00:00
|
|
|
options = languageOpts;
|
2023-04-05 13:58:56 +00:00
|
|
|
});
|
|
|
|
};
|
|
|
|
*/
|
|
|
|
};
|
|
|
|
}
|