repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim/lua/bugabinga/plugins/flash.lua

Raw
return {
  'folke/flash.nvim',
  event = "VeryLazy",
  opts = {},
  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" },
    { "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },
    { "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" },
    { "<cr><cr>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },
  },
}