repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim/lua/bugabinga/plugins/flash.lua

Raw
return {
  'folke/flash.nvim',
  event = 'VeryLazy',
  opts = {
    highlight = { backdrop = false },
    modes = { char = { highlight = { backdrop = false, } },
    },
  },
  keys = {
    {
      '<cr>',
      mode = { 'n', 'x', 'o' },
      function () require 'flash'.jump() end,
      desc = 'Flash',
    },
    {
      '<s-cr>',
      mode = { 'n', 'o', 'x' },
      function () require 'flash'.treesitter() end,
      desc =
      'Flash Treesitter'
    },
  },
}