Open Nikola-Milovic opened 10 months ago
I noticed that your config has:
use_popups_for_input = false, -- force use vim.input
and yet your screenshot shows a popup being used. I tested it and confirmed that when using that config it does not use a popup. You must have plugins being loaded that you do not realize are being loaded, which is why you are seeing a popup window for input.
Can you provide a config that recreates the issue?
Just enabling use_popups_for_input = true
, fixes it.
You can close this if this is unique to me, my config is over at my .dotfiles repo, its basically LazyVim
with minimal changes
Please read this issue.
I can't figure out the reason but neovim's builtin cmdline (at the bottom) and noice (and possibly dressing as well? haven't tested) handles the popup differently. Builtin one discards the first line (for whatever obscure reason) so I had to add a useless line at the top to make it work.
I'm sorry but until we find out the reason, we will have to keep this workaround.
If you have an alternative solution (or suggest a different message), we are more than happy to try it out :)
It's hardcoded here.
It seems this bug only happens if:
vim.opt.cmdheight = 0
in your vim configuse_popups_for_input = false
in your neo-tree configIf that is the case, we would at least need to know how 3 is implemented before we could try and fix it. If we don't have that, we might as well close the issue.
This might not be an issue anymore.
Maybe it got fixed in dressing.nvim?
Here is my config on neovim 0.9.5:
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
{
"stevearc/dressing.nvim",
},
{
"nvim-neo-tree/neo-tree.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
},
opts = {
use_popups_for_input = false,
},
},
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.opt.cmdheight = 0
@kevintraver Did you read my comment?
I'm saying that the builtin popup discards the first line of the prompt.
Sorry, maybe I am misunderstanding.
With the config above, and this line removed:
The input popup seems to work just fine.
Did you check docs and existing issues?
Neovim Version (nvim -v)
v0.9.1
Operating System / Version
Ubuntu 22.04
Describe the Bug
This text wasn't there before, not sure if a new option appeared, but this doesn't seem right
Screenshots, Traceback
No response
Steps to Reproduce
Do whatever command inside neotree that requires the popup
Expected Behavior
It used to look normal without the text
Your Configuration