Skip to content

bug: The input window is only 1 character wide #2427

@Guilherhast

Description

@Guilherhast

Describe the bug

When I open the chat, the input window is only 1 character wide.

Image

To reproduce

-- Avante configuration with packer

local config = {
	windows = {
		position = "bottom",
	},
}
require('avante_lib').load()
require('avante').setup(config)

Expected behavior

It should be wide enough to read and write comfortably.
It is also a good idea to have an opening event, so I can add my functions if I want to.

Installation method

Use packer.nvim:

	use {
		'yetone/avante.nvim',
		branch = 'main',
		run = 'make',
		requires = {
			'nvim-treesitter/nvim-treesitter',
			'stevearc/dressing.nvim', -- For better UI
			'nvim-lua/plenary.nvim',
			'MunifTanjim/nui.nvim',   -- For UI elements
			'MeanderingProgrammer/render-markdown.nvim', -- For rendering markdown
			-- Optional dependencies for enhanced features
			'hrsh7th/nvim-cmp', -- For autocompletion integration
			'nvim-tree/nvim-web-devicons', -- For icons
		},
		config = function()
			require('Plugins.Avante')
		end
	}

Environment

Neo vim version:

NVIM v0.11.2
Build type: RelWithDebInfo
LuaJIT 2.1.1748459687
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions     -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security     -fstack-clash-protection -fcf-protection     -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/neovim/src=/usr/src/debug/neovim -flto=auto -O2 -g -flto=auto -fno-fat-lto-objects -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -fsigned-char -fstack-protector-strong -Wno-conversion -fno-common -Wno-unused-result -Wimplicit-fallthrough -fdiagnostics-color=always  -DUNIT_TESTING -D_GNU_SOURCE -DINCLUDE_GENERATED_DECLARATIONS -DUTF8PROC_STATIC -I/usr/include/luajit-2.1 -I/usr/include -I/build/neovim/src/neovim/build/src/nvim/auto -I/build/neovim/src/neovim/build/include -I/build/neovim/src/neovim/build/cmake.config -I/build/neovim/src/neovim/src 

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

Dist:

Linux Archer 6.12.35-1-lts #1 SMP PREEMPT_DYNAMIC Fri, 27 Jun 2025 10:50:50 +0000 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
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    StalebugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions