Hi, On Tue, Jun 7, 2022 at 5:49 PM Francisco Lopes <[email protected]> wrote:
> *Is your feature request about something that is currently impossible or > hard to do? Please describe the problem.* > > Many editors provide support for virtual textual decorations: text which > isn't authored, but is displayed alongside real content, for many many > kinds of purposes. The main late use case is inlay hints, a well known > feature of IDEs, that's currently being pushed forward by the Language > Server Protocol. rust-analyzer, clangd, and possibly other servers > implement it, but Vim can't take advantage of it at all, because it has no > means to intermingle these virtual text hints with real text content. > > *Describe the solution you'd like* > > Vim already provides one feature that seems to touch this subject, but in > a very strict way, which is the conceal feature. From what I could > gather, it seems the ideal route to attain NeoVim-like virtual text, > VSCode-like inlay hints, while at the same time augmenting Vim's conceal > powers, would be to take the conceal feature and generalized its concept > somehow. In which ways? For example, current conceal can only conceal > text for a single cchar, we need to be able to conceal text for another > text, conceal zero-length matches to make virtual text "appear", not solely > "replace"/conceal, have conceal grouping (so it can be configured by > purpose independently, "virtual text" group concealcursor won't affect > "inlay hints" concealcursor nor Vim's native conceal's concealcursor), > have conceal by position, not just by regex. > > *Describe alternatives you've considered* > A clear and concise description of any alternative solutions or features > you've considered. > > *Additional context* > > - neovim/neovim#9496 (comment) > <https://github.com/neovim/neovim/pull/9496#issuecomment-1149278996> > - fannheyward/coc-rust-analyzer#177 (comment) > > <https://github.com/fannheyward/coc-rust-analyzer/issues/177#issuecomment-618883195> > - fannheyward/coc-rust-analyzer#177 (comment) > > <https://github.com/fannheyward/coc-rust-analyzer/issues/177#issuecomment-618883195> > > > This is similar to https://github.com/vim/vim/issues/7553, - Yegappan -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAAW7x7mtAPFJmETRmfBYN4tPrKFvo7ydyib%3D1YUw39J1tiaguA%40mail.gmail.com.
