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: Slow typing in the Avante window #711

Open
V4G4X opened this issue Oct 12, 2024 · 0 comments
Open

bug: Slow typing in the Avante window #711

V4G4X opened this issue Oct 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@V4G4X
Copy link

V4G4X commented Oct 12, 2024

Describe the bug

Typing in the Avante window is considerably slower than typing in any other buffer.

To reproduce

I could repro the issue with the minimal init.lua.

Even with barely any dependencies, I see that typing in Avante is slow enough to throw me off.

Expected behavior

Avante windows should let me type at the same speed as any other buffer.

Installation method

Use lazy.nvim:

{
        "yetone/avante.nvim",
        event = "VeryLazy",
        build = "make",
        version = false,
        dependencies = {
            "stevearc/dressing.nvim",
            "nvim-lua/plenary.nvim",
            "MunifTanjim/nui.nvim",
            "nvim-tree/nvim-web-devicons",
        },
        keys = {
            { "<leader>a", "", desc = "Avante", mode = { "n", "v" } },
        },
        config = function()
            require("avante").setup()
        end
    },
}

Environment

NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info

Darwin Varun-MBP.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:21 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8103 arm64

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
    spec = {
        "yetone/avante.nvim",
        event = "VeryLazy",
        build = "make",
        version = false,
        dependencies = {
            "stevearc/dressing.nvim",
            "nvim-lua/plenary.nvim",
            "MunifTanjim/nui.nvim",
            "nvim-tree/nvim-web-devicons",
        },
        keys = {
            { "<leader>a", "", desc = "Avante", mode = { "n", "v" } },
        },
        config = function()
            require("avante").setup()
        end
    },
})
@V4G4X V4G4X added the bug Something isn't working label Oct 12, 2024
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

No branches or pull requests

1 participant