From dd6151b4a51ff7184fc248e1a771e2552022e43c Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Wed, 16 Jul 2025 15:05:10 +0200 Subject: [PATCH] add hop --- home-manager/nixvim/default.nix | 1 + home-manager/nixvim/hop.nix | 32 ++++++++++++++++++++++++++++++++ systems/pc/configuration.nix | 1 - 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 home-manager/nixvim/hop.nix diff --git a/home-manager/nixvim/default.nix b/home-manager/nixvim/default.nix index ab39fea..64561dd 100644 --- a/home-manager/nixvim/default.nix +++ b/home-manager/nixvim/default.nix @@ -31,6 +31,7 @@ let ./wilder.nix ./typst-preview.nix ./markdown.nix + ./hop.nix ]); merged = builtins.foldl' (acc: elem: lib.recursiveUpdate acc elem) { } configs; diff --git a/home-manager/nixvim/hop.nix b/home-manager/nixvim/hop.nix new file mode 100644 index 0000000..d4fe6f9 --- /dev/null +++ b/home-manager/nixvim/hop.nix @@ -0,0 +1,32 @@ +{ + plugins.hop = { + enable = true; + }; + keymaps = [ + { + key = "f"; + action.__raw = '' + function() + require'hop'.hint_char1({ + --direction = require'hop.hint'.HintDirection.AFTER_CURSOR, + current_line_only = false, + case_insensitive = true, + }) + end + ''; + options.remap = true; + } + { + key = "F"; + action.__raw = '' + function() + require'hop'.hint_char1({ + direction = require'hop.hint'.HintDirection.BEFORE_CURSOR, + current_line_only = false + }) + end + ''; + options.remap = true; + } + ]; +} diff --git a/systems/pc/configuration.nix b/systems/pc/configuration.nix index 9532665..593896a 100644 --- a/systems/pc/configuration.nix +++ b/systems/pc/configuration.nix @@ -83,7 +83,6 @@ gpu-screen-recorder-ui.enable = true; #openrgb.enable = true; sddm.enable = true; - nightlight.enable = true; #plasma.enable = true; #i3.enable = true; #sway.enable = true;