Luigit
repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by admin

neovim/lua/bugabinga/jump2d.lua

Raw
local puk = require 'std.puk'
puk.defer 'mini.jump2d' (function(jump2d)
  jump2d.setup {
    -- Function producing jump spots (byte indexed) for a particular line.
    spotter = jump2d.builtin_opts.word_start.spotter,
    -- Characters used for labels of jump spots (in supplied order)
    labels = 'hjklgfdsabceimnoyrtuvwxzpq',
    -- Options for visual effects
    view = {
      -- How many steps ahead to show. Set to big number to show all steps.
      n_steps_ahead = 1,
    },
    -- Which lines are used for computing spots
    allowed_lines = {
      blank = false, -- Blank line (not sent to spotter even if `true`)
      fold = false,  -- Start of fold (not sent to spotter even if `true`)
    },
    silent = true,
  }
end)