From e533dd070cfb4a0921d5e7e8a92168959b907583 Mon Sep 17 00:00:00 2001 From: Einherjar Date: Thu, 7 Sep 2023 11:28:10 -0400 Subject: [PATCH] fix(flash): add treesitter keybindings --- init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index a8f42ca..0b296b3 100644 --- a/init.lua +++ b/init.lua @@ -1008,8 +1008,10 @@ require("lazy").setup({ event = "VeryLazy", -- stylua: ignore keys = { - { "s", mode = { "n", "o", "x" }, function() require("flash").jump() end, desc = "Flash", }, - { "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash", }, + { "s", mode = { "n", "o", "x" }, function() require("flash").jump() end, desc = "Flash" }, + -- { "S", mode = { "n", "o", "x" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" }, -- conflicts with nvim.surround `S`. + { "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" }, + { "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" }, }, }, })