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
The problem I'm running into is that the buttons get a little bit janky when win_options.wrap is true. wrap is necessary to prevent very long confirm messages from going out of view.
I believe the issue I'm running into is that the confirm formatter unconditionally sets padding on the button line.
Maybe there's a way around this with Noice already. Is there an option to define and use a custom formatter? I couldn't see anything like that but if there is a way to do this I'll use that of course.
Maybe there's some Neovim hackery I can manage with win_options or buf_options? I'd be happy with that too.
If neither of those are possible, I'd be happy with any new configuration optional that lets me define a custom formatter, conditionally influence or disable button padding in the existing formatter, or anything other idea that let's me get the look I'm going for.
Describe alternatives you've considered
I've tried routing all confirm-kind messages to the split view. That actually works as far as button alignment goes but is missing the Confirm title and nice button rendering we get from the confirm formatter.
Additional context
Why do I worry about long messages going off the view? I'm using an AI tool that runs local commands. Some of these commands can get pretty long, and with each command it runs it will ask Confirm you want to run: <command>.
The text was updated successfully, but these errors were encountered:
Did you check the docs?
Is your feature request related to a problem? Please describe.
I would like to customize the
confirm
view to be:I can accomplish this from the existing options, which is great!
The problem I'm running into is that the buttons get a little bit janky when
win_options.wrap
istrue
.wrap
is necessary to prevent very long confirm messages from going out of view.I believe the issue I'm running into is that the
confirm
formatter unconditionally sets padding on the button line.noice.nvim/lua/noice/text/format/formatters.lua
Lines 193 to 194 in 0427460
Describe the solution you'd like
Maybe there's a way around this with Noice already. Is there an option to define and use a custom formatter? I couldn't see anything like that but if there is a way to do this I'll use that of course.
Maybe there's some Neovim hackery I can manage with
win_options
orbuf_options
? I'd be happy with that too.If neither of those are possible, I'd be happy with any new configuration optional that lets me define a custom formatter, conditionally influence or disable button padding in the existing formatter, or anything other idea that let's me get the look I'm going for.
Describe alternatives you've considered
I've tried routing all
confirm
-kind messages to thesplit
view. That actually works as far as button alignment goes but is missing theConfirm
title and nice button rendering we get from theconfirm
formatter.Additional context
Why do I worry about long messages going off the view? I'm using an AI tool that runs local commands. Some of these commands can get pretty long, and with each command it runs it will ask
Confirm you want to run: <command>
.The text was updated successfully, but these errors were encountered: