added flash

This commit is contained in:
Oliver Hartmann 2023-06-23 14:27:20 +02:00
parent c966acfbe8
commit 36a6d599eb
2 changed files with 25 additions and 1 deletions

23
lua/plugins/flash.lua Normal file
View File

@ -0,0 +1,23 @@
return {
"folke/flash.nvim",
event = "VeryLazy",
---@type Flash.Config
opts = {},
keys = {
{
"s",
mode = { "n", "x", "o" },
function()
-- default options: exact mode, multi window, all directions, with a backdrop
require("flash").jump()
end,
},
{
"S",
mode = { "n", "o", "x" },
function()
require("flash").treesitter()
end,
},
},
}

View File

@ -4,5 +4,6 @@ return {
config = function()
require('leap').set_default_keymaps()
end,
event = 'VeryLazy'
event = 'VeryLazy',
enabled = false
}