marleyvim/nvim/lua/plugins/editor/flash-nvim.lua
2024-12-01 11:48:43 -08:00

47 lines
818 B
Lua

return {
'flash.nvim',
event = 'DeferredUIEnter',
keys = {
{
's',
function()
require('flash').jump()
end,
mode = { 'n', 'x', 'o' },
desc = 'Flash',
},
{
'S',
function()
require('flash').treesitter()
end,
mode = { 'n', 'x', 'o' },
desc = 'Flash (treesitter)',
},
{
'r',
function()
require('flash').remote()
end,
desc = 'Remote flash',
},
{
'R',
function()
require('flash').treesitter_search()
end,
mode = { 'x', 'o' },
desc = 'Treesitter search',
},
{
'<C-s>',
function()
require('flash').toggle()
end,
'Toggle flash search',
},
},
after = function()
require('flash').setup({})
end,
}