summaryrefslogtreecommitdiff
path: root/nixvim/plugins/flash.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-07-16 19:04:27 -0400
committerseth <[email protected]>2024-07-16 22:24:21 -0400
commit2e7e1ce219b43bb74f67875200dd4b68758ffd27 (patch)
tree11ca91f55aa47c5b341aaf65f3626c9681a22b07 /nixvim/plugins/flash.nix
parent255e7c40af44aeedf19a3ca682cfc8a098266e8a (diff)
back to nixvim againnixvim-again
Diffstat (limited to 'nixvim/plugins/flash.nix')
-rw-r--r--nixvim/plugins/flash.nix29
1 files changed, 29 insertions, 0 deletions
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;
+ };
+}