-
Notifications
You must be signed in to change notification settings - Fork 303
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
Automatically displaying function documentation (i.e. LspHover) while typing? #275
Comments
So I've managed to get one step closer. I had to do the following to see automatic previews of functions:
It seems that So I guess the main questioning remaining is, is there a way to see the function signature or preview window while typing function arguments? vim-go seems to have attempted this 😄 Cheers |
Looks like vim-lsc seems to have support for it: https://github.com/natebosch/vim-lsc/blob/c6d088d86cf485567cdafcf451c8b265b1620efe/autoload/lsc/signaturehelp.vim#L17-L54 |
Thanks a lot for the reply. I also found deoplete does it well, so I may try that again too. So far vim-lsp has been my favourite LSP plugin so would be lovely if it supported this functionality in future. Kindest Regards |
MenuPopupChanged neovim/neovim#9616 and floating windows should allow this in the future. Will wait for it to stabilize first. |
@prabirshrestha, did you know that |
There is a discussion going on floating window. Will take time for vim to support it. Neovim support was merged this week. vim/vim#4063 I would rather wait for a proper floating window support and have something like this instead instead of hacks. I'm not a fan of the preview window as it flickers the buffer too much. |
@prabirshrestha any news? Is it implemented already? Man, I am fascinated by your plugin and I don't want to move again to another autocompletion plugin, but I'm really in lack of this feature. |
@prabirshrestha are you going to support this? Now that Vim has |
I see that the popup triggers on the latter arguments as well __________________popup_happens The only issue I see with this is the closing/reopening of the popup (slight distraction) and the lack of highlight on the "current" argument. I guess the highlighting of current argument will take a little effort to implement. If you want the signature always displayed you can do "echodoc.vim" similar behaviour by doing: echo get(l:contents, 0, '') after line 80 |
Hey there, thanks so much for your amazing work on this plugin for vim 😄
When using LSP in Sublime Text, I can easily see function documentation in a little tooltip as I type:
When using vim-lsp and vim, I can see the suggestions as I type:
However, this popup disappears when I open my brackets to type the parameters. Is there a way to keep this displayed and highlight which parameter I'm currently entering like Sublime Text does above?
Further to this, it seems the only way to see documentation once I type the opening bracket is to use the
:LspHover
command, which gives me this:Is there a way to display this information automatically as you are typing?
I also noticed that this documentation would disappear after I started typing my parameter names in the brackets too. Not sure if there's a way to avoid that happening.
I attempted to explicitly set
completeopt
to includepreview
but that didn't seem to help.Any help is greatly appreciated
Fotis
The text was updated successfully, but these errors were encountered: