Skip to content

mini.completion: Rapidly remove and typing characters can slow down typing #678

@mortezadadgar

Description

@mortezadadgar

Contributing guidelines

Module(s)

mini.completion

Description

hey,
while configing mini.files found out that mini.completion could makes text lags to appear on screen, I recorded a video to show how easily it can be reproduced

out_new.mp4

Neovim version

0.9.5

Steps to reproduce

  1. open a file like this:
return {
	"echasnovski/mini.files",
	config = function()
		require("mini.files").setup()
		vim.keymap.set("n", "-", "<cmd>=MiniFiles.open()<CR>")

		vim.api.nvim_create_autocmd("FileType", {
			pattern = "minifiles",
			},
	end,
}
  1. move to pattern line and try to rapidly write callback and remove it letter by letter

Expected behavior

Having smooth typing experience

Actual behavior

it's visible in recorded video.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions