Compare commits

..

No commits in common. "39e27e17a2a63a5de7016a70bb2dcaf1180c1195" and "cb4500b9c7a6893c43d91304c081ef090d60f5c7" have entirely different histories.

View file

@ -1,28 +1,8 @@
{lib, ...}: let {lib, ...}: let
inherit (lib.options) mkEnableOption mkOption literalExpression; inherit (lib.options) mkEnableOption mkOption literalExpression;
inherit (lib.types) attrsOf listOf str bool int submodule; inherit (lib.types) attrsOf listOf str bool int submodule;
mkHintType = description:
mkOption {
inherit description;
default = {};
type = attrsOf (submodule {
options = {
text = mkOption {
type = str;
description = "The easier-to-read depiction of the motion.";
};
prio = mkOption {
type = int;
description = "The priority of the hint.";
example = 10;
default = 1;
};
};
});
};
in { in {
options.vim.utility.motion.precognition = { options.vim.utility.motion.precognition = rec {
enable = mkEnableOption "precognition.nvim plugin"; enable = mkEnableOption "precognition.nvim plugin";
startVisible = mkOption { startVisible = mkOption {
@ -48,13 +28,46 @@ in {
default = {link = "Comment";}; default = {link = "Comment";};
description = '' description = ''
The highlight for the virtual text. The highlight for the virtual text.
To find more about this option, please see
[the documentation](https://github.com/tris203/precognition.nvim).
''; '';
}; };
hints = mkHintType "What motions display and at what priority."; hints = mkOption {
default = {};
description = ''
What motions display and at what priority.";
To find more about this option, please see
[the documentation](https://github.com/tris203/precognition.nvim).
'';
type = attrsOf (submodule {
options = {
text = mkOption {
type = str;
description = "The easier-to-read depiction of the motion.";
};
prio = mkOption {
type = int;
description = "The priority of the hint.";
example = 10;
default = 1;
};
};
});
};
gutterHints = gutterHints =
mkHintType "What motions display and at what priority. Only appears in gutters."; hints
// {
description = ''
What motions display and at what priority. Only appears in gutters.
To find more about this option, please see
[the documentation](https://github.com/tris203/precognition.nvim).
'';
};
disabled_fts = mkOption { disabled_fts = mkOption {
type = listOf str; type = listOf str;