Skip to content
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

Long messages in ui.select get truncated #31

Open
crater2150 opened this issue Nov 20, 2023 · 0 comments
Open

Long messages in ui.select get truncated #31

crater2150 opened this issue Nov 20, 2023 · 0 comments

Comments

@crater2150
Copy link

Some LSPs create dialogs with a long or even multiline prompt passed to vim.ui.select, e.g. this message from metals (Scala LSP) (as it appears without telescope):

lsp-message

When using telescope as vim.ui.select implementation, this text is currently truncated, causing a prompt, where it is unclear what you are selecting:

lsp-message-telescope

As discussed on gitter, telescope's prompt_title is not designed to handle longer texts. One proposed solution was to create a wrapper function, which creates new window relative to the telescope prompt window's dimensions and put the long text there (which I haven't tried to write yet, as I don't have much experience with nvim scripting). Are there any other solutions, or would an implementation of the proposed one be merged? In the latter case, I may have time to look into it in a month or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant