mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 06:55:58 +01:00
utility/precognition: remove comment reference
oops
This commit is contained in:
parent
e7c411f483
commit
4c24c32269
1 changed files with 11 additions and 26 deletions
|
@ -3,9 +3,12 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.vim.utility.motion.precognition;
|
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (lib.nvim.dag) entryAnywhere;
|
inherit (lib.nvim.dag) entryAnywhere;
|
||||||
|
inherit (lib.nvim.lua) toLuaObject;
|
||||||
|
inherit (builtins) toString;
|
||||||
|
|
||||||
|
cfg = config.vim.utility.motion.precognition;
|
||||||
in {
|
in {
|
||||||
config =
|
config =
|
||||||
mkIf cfg.enable
|
mkIf cfg.enable
|
||||||
|
@ -16,31 +19,13 @@ in {
|
||||||
|
|
||||||
vim.pluginRC.precognition-nvim = entryAnywhere ''
|
vim.pluginRC.precognition-nvim = entryAnywhere ''
|
||||||
require("precognition").setup({
|
require("precognition").setup({
|
||||||
startVisible = true,
|
startVisible = ${toString cfg.startVisible},
|
||||||
showBlankVirtLine = true,
|
showBlankVirtLine = ${toString cfg.showBlankVirtLine},
|
||||||
highlightColor = { link = "Comment" },
|
highlightColor = (${toLuaObject cfg.highlightColor}), --{ link = "Comment" },
|
||||||
hints = {
|
hints = (${toLuaObject cfg.hints}),
|
||||||
Caret = { text = "^", prio = 2 },
|
gutterHints = (${toLuaObject cfg.gutterHints}),
|
||||||
Dollar = { text = "$", prio = 1 },
|
disabled_fts = (${toLuaObject cfg.disabled_fts}),
|
||||||
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",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue