[Q/Help] mini.completion: weird markdown render in signature help vs lsp.signature_help #1426
-
Hi, first I want to thank you for your awesome mini library. I've been using some of your mini plugins for some time now, including mini.completion. I specially like the "one-line" signature help, because on other plugins I tried, this kind of feature mostly gives you the full blown help description as well which takes away real estate. But in my workflow at least, I have to know/look-up a function anyway before using it and all I need is the reminder about arguments, their type and order. There is one thing that has been bugging me for a while and I hope you could help me with what I'm doing wrong. Basically the mini.completion's signature help is rendering some special characters weirdly. E.g. below (first image) the closing parenthesis and the underscore are highlighted in red when compared to This is my nvim config: https://github.com/myzb/dotfiles/tree/master/.config/nvim mini.completion signature help: Could you help me finding what I'm doing wrong? Thank you a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@myzb, thanks for kind words! Let's first unpack something here for 'mini.completion': the small usually one-line window is indeed signature help window, while the big one beside completion item is info window. Second, you are doing nothing wrong here. The markdown-like symbols is just how 'mini.completion' displays both windows: it doesn't conceal them. I think the motivation was that with them hidden it might sometimes be too wide (with extra trailing whitespace) which throws sometimes off. I am not sure about the red highlighting. I vaguely remember figuring this out some time in the past, but don't remember. The difference between 'mini.completion' and |
Beta Was this translation helpful? Give feedback.
@myzb, thanks for kind words!
Let's first unpack something here for 'mini.completion': the small usually one-line window is indeed signature help window, while the big one beside completion item is info window.
Second, you are doing nothing wrong here. The markdown-like symbols is just how 'mini.completion' displays both windows: it doesn't conceal them. I think the motivation was that with them hidden it might sometimes be too wide (with extra trailing whitespace) which throws sometimes off.
I am not sure about the red highlighting. I vaguely remember figuring this out some time in the past, but don't remember.
The difference between 'mini.completion' and
vim.lsp.buf
methods is simply be…