From 318a4c8304091422dfdfcec44dae7a676d999ee1 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 21 Jun 2023 10:51:01 +0200 Subject: [PATCH] feat: added extra for flash.nvim --- lua/lazyvim/plugins/extras/editor/flash.lua | 26 +++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/editor/flash.lua diff --git a/lua/lazyvim/plugins/extras/editor/flash.lua b/lua/lazyvim/plugins/extras/editor/flash.lua new file mode 100644 index 00000000..ed398bba --- /dev/null +++ b/lua/lazyvim/plugins/extras/editor/flash.lua @@ -0,0 +1,26 @@ +return { + { "ggandor/leap.nvim", enabled = false }, + { "ggandor/flit.nvim", enabled = false }, + { + "folke/flash.nvim", + event = "VeryLazy", + ---@type Flash.Config + opts = {}, + keys = { + { + "s", + mode = { "n", "x", "o" }, + function() + require("flash").jump() + end, + }, + { + "S", + mode = { "o", "x" }, + function() + require("flash").treesitter() + end, + }, + }, + }, +}