From cf2bc5243ca901ece35b763f2986a0b29e183eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Thu, 31 Jul 2025 16:19:36 +0200 Subject: [PATCH] feat(nvim): add flash.nvim --- .../moritz/programs/nvim/plugins/flash.nix | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 modules/moritz/programs/nvim/plugins/flash.nix diff --git a/modules/moritz/programs/nvim/plugins/flash.nix b/modules/moritz/programs/nvim/plugins/flash.nix new file mode 100644 index 0000000..91b70c4 --- /dev/null +++ b/modules/moritz/programs/nvim/plugins/flash.nix @@ -0,0 +1,25 @@ +_: { + home-manager.users.moritz.programs.nixvim = { + plugins.flash.enable = true; + keymaps = [ + { + key = "s"; + action.__raw = ''require("flash").jump''; + options.desc = "Flash"; + mode = ["n" "x" "o"]; + } + { + key = "S"; + action.__raw = ''require("flash").treesitter''; + options.desc = "Flash Treesitter"; + mode = ["n" "x" "o"]; + } + { + key = "r"; + action.__raw = ''require("flash").remote''; + options.desc = "Remote flash"; + mode = ["o"]; + } + ]; + }; +}