mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 19:25:59 +01:00
46 lines
1.4 KiB
Nix
46 lines
1.4 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.vim.utility.motion.precognition;
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.nvim.dag) entryAnywhere;
|
|
in {
|
|
config =
|
|
mkIf cfg.enable
|
|
{
|
|
vim.startPlugins = [
|
|
"precognition-nvim"
|
|
];
|
|
|
|
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",
|
|
},
|
|
})
|
|
'';
|
|
};
|
|
}
|