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;