Skip to content

Commit

Permalink
chore(flash.nvim): upgrade 'flash.nvim' configs (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 authored Aug 22, 2024
1 parent 383896d commit 1926a58
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 7 additions & 1 deletion lua/configs/folke/flash-nvim/config.lua
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
require("flash").setup()
require("flash").setup({
modes = {
search = {
enabled = true,
},
},
})
12 changes: 6 additions & 6 deletions lua/configs/folke/flash-nvim/keys.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
local keymap = require("builtin.utils.keymap")
local set_lazy_key = require("builtin.utils.keymap").set_lazy_key

local M = {
keymap.set_lazy_key({ "n", "x", "o" }, "s", function()
set_lazy_key({ "n", "x", "o" }, "s", function()
require("flash").jump()
end, { desc = "Flash jump" }),
keymap.set_lazy_key({ "n", "x", "o" }, "S", function()
require("flash").treesitter()
end, { desc = "Flash treesitter" }),
end, { desc = "Jump" }),
set_lazy_key({ "o" }, "r", function()
require("flash").remote()
end, { desc = "Jump in operator-pending" }),
}

return M

0 comments on commit 1926a58

Please sign in to comment.