[X] I have searched the existing issues of flash.nvim
[X] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
NVIM v0.9.5
Operating system/version
MacOS 14.4.1
Describe the bug
When entering a document for the first time, typing / will act as / does without flash.nvim installed.
After making a search using s, / will work seemingly as intended.
Steps To Reproduce
from command line open blank file `nvim foo.txt'
type 'hello hello world world'
type / and wo and see that flash is not activated. Escape this.
type s and wo. Escape this.
type / and see that flash is activated
Expected Behavior
flash is activated first time pressing / without doing a s
Repro
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
"folke/tokyonight.nvim",
{ "folke/flash.nvim",
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" },
},
},
-- add any other plugins here
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.9.5
Operating system/version
MacOS 14.4.1
Describe the bug
When entering a document for the first time, typing
/
will act as/
does without flash.nvim installed. After making a search usings
,/
will work seemingly as intended.Steps To Reproduce
/
andwo
and see that flash is not activated. Escape this.s
andwo
. Escape this./
and see that flash is activatedExpected Behavior
flash is activated first time pressing
/
without doing as
Repro