dotfiles
bugabingas dorkfiles
owned by bugabinga
refactor(cmdline): remove icon from input border, use space padding instead
de2cfad6bb3ba2720fcfb8424d3e129b163d83f7
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
Browse filesCompare with HEAD
Changed files (1)
neovim/lua/bugabinga/cmdline/render.lua
Modified107 107 local prompt_is_single_line
= not prompt:match
'\n' 108 108 local prompt_fits
= vim.fn.strdisplaywidth(prompt)
<= max_prompt_width
109 109 if prompt_is_single_line
and prompt_fits
then 110 - local title_text
= fmt.icon
.. ' ' .. prompt
110 + local title_text
= ' ' .. prompt
.. ' ' 111 111 vim.api.nvim_win_set_config(win, {
112 112 border = vim.g.border_style,
113 113 title = { { title_text,
'CmdlineBorderInput' } },
126 126 vim.api.nvim_win_set_config(win, {
127 127 border = vim.g.border_style,
128 - title = { { fmt.icon,
'CmdlineBorderInput' } },
128 + title = { {
' ',
'CmdlineBorderInput' } },
129 129 title_pos =
'left',
130 130 height =
#prompt_chunks
+ 1,