precognition: consistency changes

Just my minor nits.
This commit is contained in:
raf 2024-11-08 12:00:31 +03:00
parent 706c6ab60c
commit e73f1e47fd
Signed by: NotAShelf
GPG key ID: AF26552424E53993
2 changed files with 19 additions and 25 deletions

View file

@ -7,9 +7,7 @@
cfg = config.vim.utility.motion.precognition;
in {
config =
mkIf cfg.enable
{
config = mkIf cfg.enable {
vim = {
startPlugins = ["precognition-nvim"];
luaConfigRC.precognition = lib.nvim.dag.entryAnywhere ''

View file

@ -13,30 +13,30 @@
type = str;
description = "The easier-to-read depiction of the motion";
};
prio = mkOption {
type = int;
default = 1;
description = "The priority of the hint";
example = 10;
default = 1;
};
};
});
};
in {
options.vim.utility.motion.precognition = {
enable = mkEnableOption "precognition.nvim plugin";
enable = mkEnableOption "assisted motion discovery[precognition.nvim]";
setupOpts = mkPluginSetupOption "precognition.nvim" {
startVisible = mkOption {
type = bool;
description = "Whether to start 'precognition' automatically";
default = true;
description = "Whether to start 'precognition' automatically";
};
showBlankVirtLine = mkOption {
type = bool;
description = "Whether to show a blank virtual line when no movements are shown";
default = true;
description = "Whether to show a blank virtual line when no movements are shown";
};
highlightColor = mkOption {
@ -47,24 +47,20 @@ in {
# or
{ foreground = "#0000FF"; background = "#000000"; };
'';
description = ''
The highlight for the virtual text
'';
description = "The highlight for the virtual text";
};
hints = mkHintType "What motions display and at what priority";
gutterHints = mkHintType ''
What motions display and at what priority. Only appears in gutters
'';
disabled_fts = mkOption {
type = listOf str;
description = "Filetypes that automatically disable 'precognition'";
default = ["startify"];
example = literalExpression ''["startify"]'';
description = "Filetypes that automatically disable 'precognition'";
};
hints = mkHintType "What motions display, and at what priority";
gutterHints = mkHintType ''
What motions display and at what priority. Only appears in gutters
'';
};
};
}