From 4c24c32269c73339a7446e0166117962292512cb Mon Sep 17 00:00:00 2001 From: Nowaaru Date: Mon, 4 Nov 2024 00:16:06 -0700 Subject: [PATCH] utility/precognition: remove comment reference oops --- .../utility/motion/precognition/config.nix | 37 ++++++------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/modules/plugins/utility/motion/precognition/config.nix b/modules/plugins/utility/motion/precognition/config.nix index f5aeb94..d3d627c 100644 --- a/modules/plugins/utility/motion/precognition/config.nix +++ b/modules/plugins/utility/motion/precognition/config.nix @@ -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}), + }); ''; }; }