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: Editing leaves a lot of scratch buffers open #1124

Open
wvffle opened this issue Jan 23, 2025 · 0 comments
Open

bug: Editing leaves a lot of scratch buffers open #1124

wvffle opened this issue Jan 23, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@wvffle
Copy link

wvffle commented Jan 23, 2025

Describe the bug

Whenever I edit my files with avante through selecting in visual mode and then editing inline, each prompt leaves a lot of open scratch buffers.
They contain avante stuff like ⠄ <C-s>: submit

To reproduce

  1. open up any project
  2. select a couple of lines in visual mode
  3. edit them with avante (any prompt)
  4. check :ls! to see unclosed scratch buffers
  5. check :buffer <id> to see that scratch buffers contain avante stuff like ⠄ <C-s>: submit

Expected behavior

Avante should clean up after itself

Installation method

Using nixvim:

   programs.nixvim.plugins.avante = {
      enable = true;
      settings = {
        provider = "copilot";
        mappings = {
          ask = "<leader>Aa";
          edit = "<leader>Ae";
          refresh = "<leader>Ar";
        };
      };
    };

Environment

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

Linux nixos 6.12.9 #1-NixOS SMP PREEMPT_DYNAMIC Thu Jan 9 12:33:55 UTC 2025 x86_64 GNU/Linux

Repro

@wvffle wvffle added the bug Something isn't working label Jan 23, 2025
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