35 lines
635 B
Lua
35 lines
635 B
Lua
return {
|
|
'folke/flash.nvim',
|
|
event = 'VeryLazy',
|
|
---@type Flash.Config
|
|
opts = {
|
|
modes = {
|
|
search = {
|
|
enabled = false,
|
|
},
|
|
char = {
|
|
keys = { 'f', 'F', 't', 'T', ';' },
|
|
},
|
|
},
|
|
},
|
|
keys = {
|
|
{
|
|
's',
|
|
mode = { 'n', 'x', 'o' },
|
|
function()
|
|
-- default options: exact mode, multi window, all directions, with a backdrop
|
|
require('flash').jump()
|
|
end,
|
|
desc = 'Flash jump',
|
|
},
|
|
{
|
|
'S',
|
|
mode = { 'n', 'o', 'x' },
|
|
function()
|
|
require('flash').treesitter()
|
|
end,
|
|
desc = 'Flash treesitter',
|
|
},
|
|
},
|
|
}
|