Skip to content

Commit

Permalink
chore(flash.nvim): upgrade 'flash.nvim' configs
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 committed Aug 22, 2024
1 parent 383896d commit a1cfba4
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 forward" }),
set_lazy_key({ "o" }, "r", function()
require("flash").remote()
end, { desc = "Remote flash" }),
}

return M

0 comments on commit a1cfba4

Please sign in to comment.