avante.nvim icon indicating copy to clipboard operation
avante.nvim copied to clipboard

bug: Autocommands caused command to abort

Open gytis-ivaskevicius opened this issue 1 year ago • 4 comments

Describe the bug

When I :wq with sidebar open, it shows this message: image

To reproduce

Open sidebar, select split with file that you are editing, type :wq

Expected behavior

Closes vim

Installation method

Use lazy.nvim:

{
  "yetone/avante.nvim",
  event = "VeryLazy",
  lazy = false,
  version = false, -- set this if you want to always pull the latest change
  opts = {
    -- add any opts here
  },
  -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
  build = "make",
  -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
  dependencies = {
    "nvim-treesitter/nvim-treesitter",
    "stevearc/dressing.nvim",
    "nvim-lua/plenary.nvim",
    "MunifTanjim/nui.nvim",
  },
}

Environment

❯ nvim -v && uname -a NVIM v0.10.2 Build type: Release LuaJIT 2.1.1713773202 Run "nvim -V1 -v" for more info Linux Monday 6.6.54 #1-NixOS SMP PREEMPT_DYNAMIC Fri Oct 4 14:30:05 UTC 2024 x86_64 GNU/Linux

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 = {
    -- add any other plugins here
  },
})

gytis-ivaskevicius avatar Oct 13 '24 15:10 gytis-ivaskevicius

Any news on this? Is kind of anoying to not be able to close my editor with the avante window opened without needing to close it and then close the editor...

BubuDavid avatar Oct 31 '24 20:10 BubuDavid

Can you dump your nix config here?

aarnphm avatar Nov 05 '24 01:11 aarnphm

Sure, not sure how it is related but here you go :) https://github.com/gytis-ivaskevicius/nix2vim/blob/master/modules/ai.nix#L48-L52

gytis-ivaskevicius avatar Nov 05 '24 11:11 gytis-ivaskevicius

Also experiencing this when trying to close all other windows with Ctrl W + o

RUGMJ avatar Mar 02 '25 11:03 RUGMJ

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jun 28 '25 02:06 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Jul 03 '25 02:07 github-actions[bot]