-
Notifications
You must be signed in to change notification settings - Fork 115
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: Borderless cmdline popups #866
Comments
This is not a bug. |
I realize it's not a bug of nui.nvim, It is a bug in how noice.nvim is setting up the options for nui.nvim. see noice.nvim/lua/noice/view/nui.lua Line 61 in 4c1efad
this line makes noice break for me, it doesn't check for style == 'none' or handle that case in any manner, if I checkout the commit before this change, it works great |
This is a regression in noice.nvim Roll-backing to 29c7f03 (4.0.1) fixes this for me (temporary ofc). Roll-backing to b828b57 (4.1.0) should also work, unless you're using a custom position for |
input uses the If you don't want that, you need to change the view used by cmdline input. (see config) |
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.11.0-dev-20a7eeb
Operating system/version
archlinux 6.9.4-arch1-1
Describe the bug
With the commit 4c1efad, my existing configuration (also the configuration recipe for clean cmdline_popup) for noice.nvim started throwing errors for cmdline_popup views. The following error was thrown
The issue is because you're setting the prompt as the popup title and nui.nvim doesn't support border text with
border.style = 'none'
.Steps To Reproduce
Install noice.nvim with the provided configuration and run the command
lua vim.fn.input { prompt = '>' }
.Expected Behavior
The text should either be still shown as part of the prompt or there needs to be better handling upstream. You could also just ignore the prompt text, but that would be a radical solution.
Repro
The text was updated successfully, but these errors were encountered: