Files
nvim-config/lua/plugins/flash.lua
T
2026-09-29 23:57:25 +02:00

19 lines
542 B
Lua

vim.pack.add({ "https://github.com/folke/flash.nvim" })
require("flash").setup({
modes =
{
search =
{
enabled = false
}
}
})
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)