Skip to content

fix(picker): picker is closed immediately#2708

Open
abdel-17 wants to merge 1 commit intofolke:mainfrom
abdel-17:fix-immediate-close
Open

fix(picker): picker is closed immediately#2708
abdel-17 wants to merge 1 commit intofolke:mainfrom
abdel-17:fix-immediate-close

Conversation

@abdel-17
Copy link

@abdel-17 abdel-17 commented Feb 2, 2026

Description

When a Snacks picker is opened after mini.files, it is closed immediately. nvim-mini/mini.nvim#2255

Screenshots

Before

-- Install `lazy.nvim` plugin manager
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
	local lazyrepo = "https://github.com/folke/lazy.nvim.git"
	local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
	if vim.v.shell_error ~= 0 then
		error("Error cloning lazy.nvim:\n" .. out)
	end
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
	{
		"folke/snacks.nvim",
		-- dir = "~/Developer/gh/folke/snacks.nvim",
		opts = { picker = {} },
	},
	{
		"nvim-mini/mini.files",
		opts = {},
	},
})

MiniFiles.open()
vim.defer_fn(function()
	Snacks.picker.files()
end, 500)
Screen.Recording.2026-02-02.at.6.54.42.PM.mov

After

Screen.Recording.2026-02-02.at.6.56.36.PM.mov

AI Usage

The code was generated by Claude, but I manually reviewed and tested it.

@github-actions github-actions bot added picker size/m Medium PR (<50 lines changed) labels Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

picker size/m Medium PR (<50 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant