mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 13:20:44 +00:00
precognition: consistency changes
Just my minor nits.
This commit is contained in:
parent
706c6ab60c
commit
e73f1e47fd
2 changed files with 19 additions and 25 deletions
|
@ -7,14 +7,12 @@
|
|||
|
||||
cfg = config.vim.utility.motion.precognition;
|
||||
in {
|
||||
config =
|
||||
mkIf cfg.enable
|
||||
{
|
||||
vim = {
|
||||
startPlugins = ["precognition-nvim"];
|
||||
luaConfigRC.precognition = lib.nvim.dag.entryAnywhere ''
|
||||
require('precognition').setup(${lib.nvim.lua.toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
startPlugins = ["precognition-nvim"];
|
||||
luaConfigRC.precognition = lib.nvim.dag.entryAnywhere ''
|
||||
require('precognition').setup(${lib.nvim.lua.toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue