Files
nvim-config/lua/plugins/flash.lua
2026-04-11 10:05:15 +02:00

21 lines
543 B
Lua

vim.pack.add({ "https://github.com/folke/flash.nvim" })
require("flash").setup({
modes =
{
search =
{
enabled = true
}
}
})
Flash = require("flash")
vim.keymap.set({ "n", "x", "o" }, "s", function() Flash.jump() end)
vim.keymap.set({ "n", "x", "o" }, "S", function() Flash.treesitter() end)
vim.keymap.set({ "o" }, "r", function() Flash.remote() end)
vim.keymap.set({ "o", "x" }, "R", function() Flash.treesitter_search() end)
vim.keymap.set({ "c" }, "<c-s>", function() Flash.toggle() end)