diff --git a/configuration.nix b/configuration.nix index c3e5722f..29179ee9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -165,7 +165,29 @@ isMaximal: { motion = { hop.enable = true; leap.enable = true; - precognition.enable = isMaximal; + + precognition = { + enable = true; + setupOpts = { + startVisible = true; + showBlankVirtLine = true; + + # highlightColor - automatically set by theme + disabled_fts = ["startify" "alpha" "dashboard"]; + gutterHints = { + gg = { + text = "gg"; + prio = 2; + }; + }; + hints = { + Caret = { + text = "^"; + prio = 10; + }; + }; + }; + }; }; images = { diff --git a/modules/plugins/utility/motion/precognition/config.nix b/modules/plugins/utility/motion/precognition/config.nix index bfeed8f6..6535e33e 100644 --- a/modules/plugins/utility/motion/precognition/config.nix +++ b/modules/plugins/utility/motion/precognition/config.nix @@ -10,7 +10,9 @@ in { config = mkIf cfg.enable { - vim.startPlugins = ["precognition-nvim"]; + vim.startPlugins = [ + "precognition-nvim" + ]; vim.luaConfigRC.precognition = lib.nvim.dag.entryAnywhere '' require('precognition').setup(${lib.nvim.lua.toLuaObject cfg.setupOpts}) diff --git a/modules/plugins/utility/motion/precognition/precognition.nix b/modules/plugins/utility/motion/precognition/precognition.nix index 25fedd8e..b387d7f9 100644 --- a/modules/plugins/utility/motion/precognition/precognition.nix +++ b/modules/plugins/utility/motion/precognition/precognition.nix @@ -11,11 +11,11 @@ options = { text = mkOption { type = str; - description = "The easier-to-read depiction of the motion"; + description = "The easier-to-read depiction of the motion."; }; prio = mkOption { type = int; - description = "The priority of the hint"; + description = "The priority of the hint."; example = 10; default = 1; }; @@ -29,13 +29,13 @@ in { setupOpts = mkPluginSetupOption "precognition.nvim" { startVisible = mkOption { type = bool; - description = "Whether to start 'precognition' automatically"; + description = "Whether to start 'precognition' automatically."; default = true; }; showBlankVirtLine = mkOption { type = bool; - description = "Whether to show a blank virtual line when no movements are shown"; + description = "Whether to show a blank virtual line when no movements are shown."; default = true; }; @@ -48,20 +48,17 @@ in { { foreground = "#0000FF"; background = "#000000"; }; ''; description = '' - The highlight for the virtual text + The highlight for the virtual text. ''; }; - hints = mkHintType "What motions display and at what priority"; + hints = mkHintType "What motions display and at what priority."; - gutterHints = mkHintType '' - What motions display and at what priority. Only appears in gutters - ''; + gutterHints = + mkHintType "What motions display and at what priority. Only appears in gutters."; disabled_fts = mkOption { type = listOf str; - description = "Filetypes that automatically disable 'precognition'"; - default = ["startify"]; example = literalExpression ''["startify"]''; };