mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-23 05:40:44 +00:00
Compare commits
No commits in common. "18e27eb0bbb8e7bcc40f876331f6165786f5cbdf" and "e43b18cb9f3bd41fa1edf9823493073ddc859d7b" have entirely different histories.
18e27eb0bb
...
e43b18cb9f
3 changed files with 34 additions and 13 deletions
|
@ -165,7 +165,29 @@ isMaximal: {
|
||||||
motion = {
|
motion = {
|
||||||
hop.enable = true;
|
hop.enable = true;
|
||||||
leap.enable = true;
|
leap.enable = true;
|
||||||
precognition.enable = isMaximal;
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
images = {
|
images = {
|
||||||
|
|
|
@ -10,7 +10,9 @@ in {
|
||||||
config =
|
config =
|
||||||
mkIf cfg.enable
|
mkIf cfg.enable
|
||||||
{
|
{
|
||||||
vim.startPlugins = ["precognition-nvim"];
|
vim.startPlugins = [
|
||||||
|
"precognition-nvim"
|
||||||
|
];
|
||||||
|
|
||||||
vim.luaConfigRC.precognition = lib.nvim.dag.entryAnywhere ''
|
vim.luaConfigRC.precognition = lib.nvim.dag.entryAnywhere ''
|
||||||
require('precognition').setup(${lib.nvim.lua.toLuaObject cfg.setupOpts})
|
require('precognition').setup(${lib.nvim.lua.toLuaObject cfg.setupOpts})
|
||||||
|
|
|
@ -11,11 +11,11 @@
|
||||||
options = {
|
options = {
|
||||||
text = mkOption {
|
text = mkOption {
|
||||||
type = str;
|
type = str;
|
||||||
description = "The easier-to-read depiction of the motion";
|
description = "The easier-to-read depiction of the motion.";
|
||||||
};
|
};
|
||||||
prio = mkOption {
|
prio = mkOption {
|
||||||
type = int;
|
type = int;
|
||||||
description = "The priority of the hint";
|
description = "The priority of the hint.";
|
||||||
example = 10;
|
example = 10;
|
||||||
default = 1;
|
default = 1;
|
||||||
};
|
};
|
||||||
|
@ -29,13 +29,13 @@ in {
|
||||||
setupOpts = mkPluginSetupOption "precognition.nvim" {
|
setupOpts = mkPluginSetupOption "precognition.nvim" {
|
||||||
startVisible = mkOption {
|
startVisible = mkOption {
|
||||||
type = bool;
|
type = bool;
|
||||||
description = "Whether to start 'precognition' automatically";
|
description = "Whether to start 'precognition' automatically.";
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
showBlankVirtLine = mkOption {
|
showBlankVirtLine = mkOption {
|
||||||
type = bool;
|
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;
|
default = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -48,20 +48,17 @@ in {
|
||||||
{ foreground = "#0000FF"; background = "#000000"; };
|
{ foreground = "#0000FF"; background = "#000000"; };
|
||||||
'';
|
'';
|
||||||
description = ''
|
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 ''
|
gutterHints =
|
||||||
What motions display and at what priority. Only appears in gutters
|
mkHintType "What motions display and at what priority. Only appears in gutters.";
|
||||||
'';
|
|
||||||
|
|
||||||
disabled_fts = mkOption {
|
disabled_fts = mkOption {
|
||||||
type = listOf str;
|
type = listOf str;
|
||||||
description = "Filetypes that automatically disable 'precognition'";
|
|
||||||
|
|
||||||
default = ["startify"];
|
default = ["startify"];
|
||||||
example = literalExpression ''["startify"]'';
|
example = literalExpression ''["startify"]'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue