summaryrefslogtreecommitdiff
path: root/lua/aotrix/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'lua/aotrix/plugins')
-rw-r--r--lua/aotrix/plugins/flash.lua35
1 files changed, 35 insertions, 0 deletions
diff --git a/lua/aotrix/plugins/flash.lua b/lua/aotrix/plugins/flash.lua
new file mode 100644
index 0000000..dc8455b
--- /dev/null
+++ b/lua/aotrix/plugins/flash.lua
@@ -0,0 +1,35 @@
+return {
+ "folke/flash.nvim",
+ event = "VeryLazy",
+ ---@type Flash.Config
+ opts = {},
+ keys = {
+ {
+ "s",
+ mode = {"n", "x", "o"},
+ function() require("flash").jump() end,
+ desc = "Flash"
+ }, {
+ "S",
+ mode = {"n", "x", "o"},
+ function() require("flash").treesitter() end,
+ desc = "Flash Treesitter"
+ }, {
+ "r",
+ mode = "o",
+ function() require("flash").remote() end,
+ desc = "Remote Flash"
+ }, {
+ "R",
+ mode = {"o", "x"},
+ function() require("flash").treesitter_search() end,
+ desc = "Treesitter Search"
+ }, {
+ "<c-s>",
+ mode = {"c"},
+ function() require("flash").toggle() end,
+ desc = "Toggle Flash Search"
+ }
+ }
+
+}