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

Stuttering when continuously moving the cursor down via "j" #118

Open
zaiqiang-dong opened this issue Jan 15, 2025 · 0 comments
Open

Stuttering when continuously moving the cursor down via "j" #118

zaiqiang-dong opened this issue Jan 15, 2025 · 0 comments

Comments

@zaiqiang-dong
Copy link

zaiqiang-dong commented Jan 15, 2025

Stuttering when continuously moving the cursor down via "j"
but "Ctrl+d" is smooth

Screencast.2025-01-15.18-37-59.mp4
  1. open a big code file ,eg: linux source code fs/namei.c
  2. continuously moving the cursor down via "j"

Neovim setup

  • Neovim version: NVIM v0.11.0-dev-1454+gefe1732c6f
  • Outline.nvim version: "outline.nvim": { "branch": "main", "commit": "454aedc7cc6d5abd1e6776e87ccf8a3df119c207" },
  • Neovim distro (if applicable):
  • Plugin manager: Lazy.nvim

Config:

return {
	{
		"hedyhli/outline.nvim",
		init = function()
			vim.api.nvim_create_autocmd("BufEnter", {
				callback = function()
					if vim.bo.filetype == "Outline" and vim.fn.winnr('$') == 1 then
						vim.cmd("q")
					end
				end,
			})
		end,
		config = function()
			-- Example mapping to toggle outline
			vim.keymap.set("n", "<leader>o", "<cmd>Outline<CR>",
				{ desc = "Toggle Outline" })


			require("outline").setup {
				outline_window = {
					position = 'left',
					width = 15,
				},
				-- Your setup opts here (leave empty to use defaults)
			}
		end,
	},
}

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

1 participant