From 434974284aef08425db845c491e7358c3aa1a16c Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 6 Jun 2024 09:58:25 +0200 Subject: [PATCH] nvim: Fix flash for search and operator pending flash.nvim was activating on searches which, while perhaps useful for some people, was not for me. It stops the (incremental) search as soon as no valid target exists which drops you back into normal mode while still typing out the search and thus doing who-knows-what. The operator pending mode for the original jump mapping has been removed to allow the 'surround' mappings from mini plugin to always work correctly (`ysiw`, `csaw`, ...). --- nvim/.config/nvim/lua/plugins/core.lua | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/core.lua b/nvim/.config/nvim/lua/plugins/core.lua index baf7705..839a1c4 100644 --- a/nvim/.config/nvim/lua/plugins/core.lua +++ b/nvim/.config/nvim/lua/plugins/core.lua @@ -51,7 +51,7 @@ return { keys = { { "s", - mode = { "n", "x", "o" }, + mode = { "n", "x" }, function() require("flash").jump() end, @@ -73,22 +73,6 @@ return { end, desc = "Remote Flash", }, - { - "R", - mode = { "o", "x" }, - function() - require("flash").treesitter_search() - end, - desc = "Treesitter Search", - }, - { - "", - mode = { "c" }, - function() - require("flash").toggle() - end, - desc = "Toggle Flash Search", - }, }, },