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(explorer): Blank lines at the bottom of explorer when auto_hide = { "input" } #1450

Open
4 tasks done
georgeguimaraes opened this issue Feb 26, 2025 · 0 comments
Open
4 tasks done
Labels
bug Something isn't working

Comments

@georgeguimaraes
Copy link

Did you check docs and existing issues?

  • I have read all the snacks.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of snacks.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

v0.11.0-dev-4985+g56fabcadb6-Homebrew

Operating system/version

MacOS 15.3.1

Describe the bug

Image

When I have

						explorer = {
							layout = {
								auto_hide = { "input" },
							},

The explorer keeps some lines blank at the bottom (see the attached image), even if there's files to be displayed there (you can keep scrolling)

Steps To Reproduce

  1. Open Snacks.explorer()
  2. Open a lot of dirs to have enough files to fill the list

Expected Behavior

no blank lines at the bottom.

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 = {
		{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
		{
			"folke/snacks.nvim",
			opts = {
				image = {},
				picker = {
					formatters = {
						file = {
							truncate = 70,
						},
					},
					sources = {
						files = { hidden = true },
						explorer = {
							layout = {
								auto_hide = { "input" },
							},
						},
					},
				},
			},
		},
	},
})
@georgeguimaraes georgeguimaraes added the bug Something isn't working label Feb 26, 2025
@georgeguimaraes georgeguimaraes changed the title bug(explorer): Blank lines at the bottom of explorer when auto_hidde = { "input" } bug(explorer): Blank lines at the bottom of explorer when auto_hide = { "input" } Feb 26, 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