hop

URL: https://github.com/smoka7/hop.nvim/

Maintainers: Gaetan Lepage


Hop doesn’t set any keybindings; you will have to define them by yourself. If you want to create a key binding from within nixvim:

  keymaps = [
    {
      key = "f";
      action.__raw = \'\'
        function()
          require'hop'.hint_char1({
            direction = require'hop.hint'.HintDirection.AFTER_CURSOR,
            current_line_only = true
          })
        end
      \'\';
      options.remap = true;
    }
    {
      key = "F";
      action.__raw = \'\'
        function()
          require'hop'.hint_char1({
            direction = require'hop.hint'.HintDirection.BEFORE_CURSOR,
            current_line_only = true
          })
        end
      \'\';
      options.remap = true;
    }
    {
      key = "t";
      action.__raw = \'\'
        function()
          require'hop'.hint_char1({
            direction = require'hop.hint'.HintDirection.AFTER_CURSOR,
            current_line_only = true,
            hint_offset = -1
          })
        end
      \'\';
      options.remap = true;
    }
    {
      key = "T";
      action.__raw = \'\'
        function()
          require'hop'.hint_char1({
            direction = require'hop.hint'.HintDirection.BEFORE_CURSOR,
            current_line_only = true,
            hint_offset = 1
          })
        end
      \'\';
      options.remap = true;
    }
  ];

plugins.hop.enable

Whether to enable hop.nvim.

Type: boolean

Default: false

Example: true

Declared by:

plugins.hop.package

The hop.nvim package to use.

Type: package

Default: pkgs.vimPlugins.hop-nvim

Declared by: