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

Slow rendering with Kitty when adding/deleting lines #245

Open
ghost opened this issue Nov 16, 2024 · 0 comments
Open

Slow rendering with Kitty when adding/deleting lines #245

ghost opened this issue Nov 16, 2024 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 16, 2024

Using Kitty with imagemagick rock on Hyprland and NixOS unstable, whenever I add or delete a line Neovim freezes for 2-3 seconds while the image blinks out and moves to the new position. This happens only when the image is moving to a line it has not been on before.

For instance if the image link is on line 10 and I insert a new line 5 times the freeze happens each time. But when I delete those lines the image moves quickly. If I delete two more lines ( so the image link is then on lines 9 then 8), the freezing comes back. If I add new lines the image moves quickly until I get to line 15, which is a line the link has not been on before and then it starts freezing again.

Minimal config:

-- [[
-- snipped generic mini.deps boilerplate
--]]

local ts_spec = {
	source = "nvim-treesitter/nvim-treesitter",
	checkout = "master",
	hooks = {
		post_checkout = function()
			vim.cmd("TSUpdate")
		end,
	},
}

add({ source = "nvim-treesitter/nvim-treesitter-textobjects", depends = { ts_spec } })

local ensure_installed = {
	"css",
	"html",
	"markdown",
	"markdown_inline",
}

require("nvim-treesitter.configs").setup({
	ensure_installed = ensure_installed,
	highlight = { enable = true },
	incremental_selection = { enable = false },
	textobjects = { enable = false },
	indent = { enable = false },
})

add("3rd/image.nvim")
require("image").setup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants