From 2e7e1ce219b43bb74f67875200dd4b68758ffd27 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 16 Jul 2024 19:04:27 -0400 Subject: back to nixvim again --- nixvim/plugins/flash.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 nixvim/plugins/flash.nix (limited to 'nixvim/plugins/flash.nix') diff --git a/nixvim/plugins/flash.nix b/nixvim/plugins/flash.nix new file mode 100644 index 0000000..00f6c05 --- /dev/null +++ b/nixvim/plugins/flash.nix @@ -0,0 +1,29 @@ +{ helpers, ... }: +{ + keymaps = [ + { + action = helpers.mkRaw '' + function() + require("flash").jump() + end + ''; + + key = "s"; + + options = { + noremap = true; + silent = true; + }; + + mode = [ + "n" + "o" + "x" + ]; + } + ]; + + plugins.flash = { + enable = true; + }; +} -- cgit v1.2.3