yetone / avante.nvim

Use your Neovim like using Cursor AI IDE!
Apache License 2.0
7.45k stars 276 forks source link

bug: Autocommands caused command to abort #715

Open gytis-ivaskevicius opened 1 month ago

gytis-ivaskevicius commented 1 month ago

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
  },
})
BubuDavid commented 4 weeks ago

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...

aarnphm commented 3 weeks ago

Can you dump your nix config here?

gytis-ivaskevicius commented 3 weeks ago

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