You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to extend the cmdline.format table to include another option. The option is working as expected, but there is one thing that's been bugging me:
The title is not shown. All other options (cmdline, help, search, etc.) have the title display in the prompt except mine.
Should instead defaults to the format's title. Since I believe an undefined field is nil the change is backward compatible? I could be wrong, as I said, I'm really not good at Lua :)
message.title=format.title
Steps To Reproduce
Open cmdline (:)
Type in the cmdline [R, space]: R
The icon should change, but the title cmdline should disappear
Expected Behavior
The title should change to Testerino (in the repro case).
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.2 Build type: Release LuaJIT 2.1.1727870382
Operating system/version
MacOS 14.6.1
Describe the bug
I am trying to extend the
cmdline.format
table to include another option. The option is working as expected, but there is one thing that's been bugging me:The
title
is not shown. All other options (cmdline, help, search, etc.) have the title display in the prompt except mine.I am not very good at Lua, so I might be wrong, but it seems like this line https://github.com/folke/noice.nvim/blob/main/lua/noice/ui/cmdline.lua#L117
Should instead defaults to the format's title. Since I believe an undefined field is
nil
the change is backward compatible? I could be wrong, as I said, I'm really not good at Lua :)Steps To Reproduce
:
)R
cmdline
should disappearExpected Behavior
The title should change to
Testerino
(in the repro case).Repro
The text was updated successfully, but these errors were encountered: