mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 04:35: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,
|
||||
...
|
||||
}: 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}),
|
||||
});
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue