Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: leap/flit config issue #56

Closed
3 tasks done
trevarj opened this issue Jan 13, 2023 · 2 comments · Fixed by #28
Closed
3 tasks done

bug: leap/flit config issue #56

trevarj opened this issue Jan 13, 2023 · 2 comments · Fixed by #28
Labels
bug Something isn't working

Comments

@trevarj
Copy link

trevarj commented Jan 13, 2023

Did you check docs and existing issues?

  • I have read all the LazyVim docs
  • I have searched the existing issues of LazyVim
  • I have searched the exsiting issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.8.2

Operating system/version

Linux

Describe the bug

Bad UX when doing a dot-repeat motion due to flit.nvim.

If you happen to do a dot-repeat after a motion (see reproduction steps below) it appears as if nvim has frozen. See: ggandor/flit.nvim#13 (comment)

Steps To Reproduce

  1. Open a blank file
  2. Type "delete" on one line. <esc>yypggdtt to delete till letter 't' on first line "delete"
  3. Go to next line and press '.' to repeat on second "delete"
  4. Appears that nvim has frozen, but you can C-c to get unstuck...

Expected Behavior

User is aware that they are in flit mode or maybe make exit it 😕
or https://github.com/tpope/vim-repeat added to dependencies of leap.nvim

Repro

-- 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/LazyVim",
	{
		"ggandor/leap.nvim",
		lazy = false,
		dependencies = { { "ggandor/flit.nvim", opts = { labeled_modes = "nv" } } },
		config = function(_, opts)
			local leap = require("leap")
			for k, v in pairs(opts) do
				leap.opts[k] = v
			end
			leap.add_default_mappings(true)
		end,
	},
	-- add any other plugins here
}
require("lazy").setup(plugins, {
	root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here
@trevarj trevarj added the bug Something isn't working label Jan 13, 2023
@blakedietz
Copy link

Can confirm I've experienced this bug.

@folke folke closed this as completed in 688436c Jan 13, 2023
@folke
Copy link
Collaborator

folke commented Jan 13, 2023

Added vim-repeat. Thank you!

ofrades pushed a commit to ofrades/LazyVim that referenced this issue May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants