diff --git a/lua/plugins/flash.lua b/lua/plugins/flash.lua new file mode 100644 index 0000000..4f4c43c --- /dev/null +++ b/lua/plugins/flash.lua @@ -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, + }, + }, +} diff --git a/lua/plugins/leap.lua b/lua/plugins/leap.lua index 830b40d..93c58d2 100644 --- a/lua/plugins/leap.lua +++ b/lua/plugins/leap.lua @@ -4,5 +4,6 @@ return { config = function() require('leap').set_default_keymaps() end, - event = 'VeryLazy' + event = 'VeryLazy', + enabled = false }