From 430bb5d53215f2fdaff1c73f1013d30f816a1b53 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Wed, 16 Jul 2025 19:50:12 +0200 Subject: [PATCH] hop --- home-manager/nixvim/config.nix | 26 ++++++++++++++++++++++++++ home-manager/nixvim/hop.nix | 28 +--------------------------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/home-manager/nixvim/config.nix b/home-manager/nixvim/config.nix index 1b1db37..22395d8 100644 --- a/home-manager/nixvim/config.nix +++ b/home-manager/nixvim/config.nix @@ -190,6 +190,32 @@ key = "rI"; action = ":Refactor inline_func "; options.desc = "Inline function"; + } + # hop + { + 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/home-manager/nixvim/hop.nix b/home-manager/nixvim/hop.nix index d4fe6f9..a1b4095 100644 --- a/home-manager/nixvim/hop.nix +++ b/home-manager/nixvim/hop.nix @@ -2,31 +2,5 @@ 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; - } - ]; + # keybinds moved to config.nix, my merging method sux and having multiple lists overrides the other }