mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
Compare commits
6 commits
e337369821
...
3c4e0aa8d9
Author | SHA1 | Date | |
---|---|---|---|
|
3c4e0aa8d9 | ||
|
18e27eb0bb | ||
|
80ca761639 | ||
|
f013656dab | ||
|
c20bfdd6dc | ||
|
3c1f89984c |
3 changed files with 13 additions and 34 deletions
|
@ -165,29 +165,7 @@ isMaximal: {
|
|||
motion = {
|
||||
hop.enable = true;
|
||||
leap.enable = true;
|
||||
|
||||
precognition = {
|
||||
enable = true;
|
||||
setupOpts = {
|
||||
startVisible = true;
|
||||
showBlankVirtLine = true;
|
||||
|
||||
# highlightColor - automatically set by theme
|
||||
disabled_fts = ["startify" "alpha" "dashboard"];
|
||||
gutterHints = {
|
||||
gg = {
|
||||
text = "gg";
|
||||
prio = 2;
|
||||
};
|
||||
};
|
||||
hints = {
|
||||
Caret = {
|
||||
text = "^";
|
||||
prio = 10;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
precognition.enable = isMaximal;
|
||||
};
|
||||
|
||||
images = {
|
||||
|
|
|
@ -10,9 +10,7 @@ in {
|
|||
config =
|
||||
mkIf cfg.enable
|
||||
{
|
||||
vim.startPlugins = [
|
||||
"precognition-nvim"
|
||||
];
|
||||
vim.startPlugins = ["precognition-nvim"];
|
||||
|
||||
vim.luaConfigRC.precognition = lib.nvim.dag.entryAnywhere ''
|
||||
require('precognition').setup(${lib.nvim.lua.toLuaObject cfg.setupOpts})
|
||||
|
|
|
@ -11,11 +11,11 @@
|
|||
options = {
|
||||
text = mkOption {
|
||||
type = str;
|
||||
description = "The easier-to-read depiction of the motion.";
|
||||
description = "The easier-to-read depiction of the motion";
|
||||
};
|
||||
prio = mkOption {
|
||||
type = int;
|
||||
description = "The priority of the hint.";
|
||||
description = "The priority of the hint";
|
||||
example = 10;
|
||||
default = 1;
|
||||
};
|
||||
|
@ -29,13 +29,13 @@ in {
|
|||
setupOpts = mkPluginSetupOption "precognition.nvim" {
|
||||
startVisible = mkOption {
|
||||
type = bool;
|
||||
description = "Whether to start 'precognition' automatically.";
|
||||
description = "Whether to start 'precognition' automatically";
|
||||
default = true;
|
||||
};
|
||||
|
||||
showBlankVirtLine = mkOption {
|
||||
type = bool;
|
||||
description = "Whether to show a blank virtual line when no movements are shown.";
|
||||
description = "Whether to show a blank virtual line when no movements are shown";
|
||||
default = true;
|
||||
};
|
||||
|
||||
|
@ -48,17 +48,20 @@ in {
|
|||
{ foreground = "#0000FF"; background = "#000000"; };
|
||||
'';
|
||||
description = ''
|
||||
The highlight for the virtual text.
|
||||
The highlight for the virtual text
|
||||
'';
|
||||
};
|
||||
|
||||
hints = mkHintType "What motions display and at what priority.";
|
||||
hints = mkHintType "What motions display and at what priority";
|
||||
|
||||
gutterHints =
|
||||
mkHintType "What motions display and at what priority. Only appears in gutters.";
|
||||
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"]'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue