utility/precognition: remove comment reference

oops
This commit is contained in:
Nowaaru 2024-11-04 00:16:06 -07:00
parent e7c411f483
commit 4c24c32269
No known key found for this signature in database

View file

@ -3,9 +3,12 @@
lib,
...
}: let
cfg = config.vim.utility.motion.precognition;
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.lua) toLuaObject;
inherit (builtins) toString;
cfg = config.vim.utility.motion.precognition;
in {
config =
mkIf cfg.enable
@ -16,31 +19,13 @@ in {
vim.pluginRC.precognition-nvim = entryAnywhere ''
require("precognition").setup({
startVisible = true,
showBlankVirtLine = true,
highlightColor = { link = "Comment" },
hints = {
Caret = { text = "^", prio = 2 },
Dollar = { text = "$", prio = 1 },
MatchingPair = { text = "%", prio = 5 },
Zero = { text = "0", prio = 1 },
w = { text = "w", prio = 10 },
b = { text = "b", prio = 9 },
e = { text = "e", prio = 8 },
W = { text = "W", prio = 7 },
B = { text = "B", prio = 6 },
E = { text = "E", prio = 5 },
},
gutterHints = {
G = { text = "G", prio = 10 },
gg = { text = "gg", prio = 9 },
PrevParagraph = { text = "{", prio = 8 },
NextParagraph = { text = "}", prio = 8 },
},
disabled_fts = {
"startify",
},
})
startVisible = ${toString cfg.startVisible},
showBlankVirtLine = ${toString cfg.showBlankVirtLine},
highlightColor = (${toLuaObject cfg.highlightColor}), --{ link = "Comment" },
hints = (${toLuaObject cfg.hints}),
gutterHints = (${toLuaObject cfg.gutterHints}),
disabled_fts = (${toLuaObject cfg.disabled_fts}),
});
'';
};
}