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
Describe the bug vim.ui.input shows listcharseol when the width of the text goes beyond
the available width of the input.
System information
OS: linux
Neovim version:
NVIM v0.7.0-dev+1287-g315858bf6
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by lalitmee@pop-os
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/share/nvim"
Run :checkhealth for more info
Is this related to a specific vim.ui.select backend? If so, which one? No.
Dressing config:
-- Paste your call to require("dressing").setup(...) in heredressing.setup({
input= { insert_only=false, winblend=2 },
select= {
winblend=2,
telescope=require("telescope.themes").get_cursor({
layout_config= {
-- NOTE: the limit is half the max lines because this is the cursor theme so-- unless the cursor is at the top or bottom it realistically most often will-- only have half the screen availableheight=function(self, _, max_lines)
localresults=#self.finder.resultslocalPADDING=4-- this represents the size of the telescope windowlocalLIMIT=math.floor(max_lines/2)
return (results<= (LIMIT-PADDING) andresults+PADDINGorLIMIT)
end,
},
}),
},
})
To Reproduce
Steps to reproduce the behavior:
find something which is big in width more than the vim.ui.input width
open to rename or open nvim-tree.lua to rename or create a file
If possible, provide a minimal file that will trigger the issue (see tests/manual
for examples of short ways to call vim.ui.*):
-- minimal code not required
Screenshots
Additional context
I tried to setup setlocal noeol in the DressingInput on the basis of Filetype in an autocmd but
it didn't work.
The text was updated successfully, but these errors were encountered:
Since this buffer is a single line, it shouldn't be wrapping at all. I pushed up
a change that sets nowrap in the input window by default. See if that makes a
difference for you.
Unfortunately I'm not able to reproduce the issue as stated, so if that commit
doesn't fix it you'll need to either debug more yourself or come up with a
minimal repro. Try a clean config with just dressing.nvim installed, and run the
snippet below. Then add back your config until you find what options/plugins
cause the bad interaction.
vim.ui.input({
prompt="Big: ",
default="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque eget ipsum vel dui rhoncus ullamcorper at mattis turpis. Pellentesque finibus lacinia purus vel pellentesque. Vivamus sed metus varius purus gravida placerat in nec ex. Maecenas sagittis, lorem sit amet dictum sodales, leo mi rutrum erat, vel pretium tortor mi et metus. Vivamus eu orci consectetur, elementum neque quis, dapibus odio. Curabitur laoreet gravida ante, vel porttitor ante efficitur vitae. Fusce mattis diam in nisl efficitur, et auctor risus iaculis. Pellentesque sagittis mollis egestas.",
width=0.2,
}, function() end)
Also worth noting that setlocal noeol won't work because that option is totally unrelated (see :help eol). You would want setlocal listchars+=eol:\ or setlocal showbreak=NONE.
Describe the bug
vim.ui.input
showslistchars
eol
when the width of the text goes beyondthe available width of the input.
System information
vim.ui.select
backend? If so, which one? No.To Reproduce
Steps to reproduce the behavior:
vim.ui.input
widthnvim-tree.lua
to rename or create a fileIf possible, provide a minimal file that will trigger the issue (see
tests/manual
for examples of short ways to call
vim.ui.*
):-- minimal code not required
Screenshots
Additional context
I tried to setup
setlocal noeol
in theDressingInput
on the basis ofFiletype
in anautocmd
butit didn't work.
The text was updated successfully, but these errors were encountered: