summaryrefslogtreecommitdiff
path: root/nixvim/plugins/flash.nix
blob: 00f6c05e6954bcf674f214573bdd791300fca099 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
  };
}