Closed max397574 closed 1 year ago
vim.keymap.set({ "n", "v", "x", "s" }, "t", "t")
What do you want to do here?
That;s the reason it doesn't work. This is a recursive mapping?
Without the keys
the issue is the same. It's just that mapping that's wrong
but without that keymap and without keys it still doesn't work. Either way, this has nothing to do with lazy
Describe the bug I lazyload lightspeed on keys depending on which key I use first dot-repeat with
t
doesn't workWhich version of Neovim are you using? NVIM v0.9.0-dev-525+ga7332ba9b
To Reproduce
Steps to reproduce the behavior:
nvim repro.lua -u repro.lua
sa<esc>0
dta
.
-> doesn't workZZ
nvim repro.lua -u repro.lua
dta
.
-> worksExpected Behavior dot-repeat works in both cases
repro.lua
```lua 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", "--single-branch", "https://github.com/folke/lazy.nvim.git", lazypath, }) end vim.opt.runtimepath:prepend(lazypath) -- install plugins local plugins = { -- do not remove the colorscheme! "folke/tokyonight.nvim", { "ggandor/lightspeed.nvim", keys = { "s", "S", "f", "F", "T","t" }, config = function() vim.keymap.set("n", "s", "Log Please include any related errors from the Noice log file. (open with
:Lazy log
)Lazy log
If I remove the
keys
lazy loading it also works