ycm-core / YouCompleteMe

A code-completion engine for Vim

Home Page:http://ycm-core.github.io/YouCompleteMe/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clangd with neovim cannot show Function Parameter Completion.

cxwx opened this issue · comments

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside
the brackets) before filing your issue:

  • I have read and understood YCM's [CONTRIBUTING][cont] document.
  • I have read and understood YCM's [CODE_OF_CONDUCT][code] document.
  • I have read and understood YCM's [README][readme], especially the
    [Frequently Asked Questions][faq] section.
  • I have searched YCM's issue tracker to find issues similar to the one I'm
    about to report and couldn't find an answer to my problem. ([Example Google
    search.][search])
  • If filing a bug report, I have included the output of vim --version.
  • If filing a bug report, I have included the output of :YcmDebugInfo.
  • If filing a bug report, I have attached the contents of the logfiles using
    the :YcmToggleLogs command.
  • If filing a bug report, I have included which OS (including specific OS
    version) I am using.
  • If filing a bug report, I have included a minimal test case that reproduces
    my issue, using vim -Nu /path/to/YCM/vimrc_ycm_minimal, including what I
    expected to happen and what actually happened.
  • If filing a installation failure report, I have included the entire output
    of install.py (or cmake/make/ninja) including its invocation
  • I understand this is an open-source project staffed by volunteers and
    that any help I receive is a selfless, heartfelt gift of their free time. I
    know I am not entitled to anything and will be polite and courteous.
  • I understand my issue may be closed if it becomes obvious I didn't
    actually perform all of these steps.

Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.

Issue Details

using vim9 it works find
截屏2023-08-27 21 21 34

but If I use neovim-0.9
截屏2023-08-27 21 28 03

no function parameters show on screen?

  • What did you do?
    pure vim-9 and nvim-0.9
    install only one plug Youcompleteme
    it shows different
  1. vim -Nu /path/to/YCM/ycm_vimrc_minimal
  2. :edit test.py
  3. Enter insert mode and type .....
  • What did you expect to happen?

nvim show the function parameter the same as vim

Output of vim --version

vim 9
neovim 0.9

Output of YcmDebugInfo

the only difference
vim:

-- Server logfiles:
--   /var/folders/05/dfw4d4ds0nx2xyyn7yt5ky3r0000gn/T/ycmd_56063_stdout_dnlp9nq1.log
--   /var/folders/05/dfw4d4ds0nx2xyyn7yt5ky3r0000gn/T/ycmd_56063_stderr_os0ffmbd.log
-- Semantic highlighting supported: True
-- Virtual text supported: True
-- Popup windows supported: True

neovim:

-- Server logfiles:
--   /var/folders/05/dfw4d4ds0nx2xyyn7yt5ky3r0000gn/T/ycmd_56333_stdout_b9d9ylww.log
--   /var/folders/05/dfw4d4ds0nx2xyyn7yt5ky3r0000gn/T/ycmd_56333_stderr_l9_wtfev.log
-- Semantic highlighting supported: False
-- Virtual text supported: False
-- Popup windows supported: False

does it cause by neovim not supporting Popup windows supported or Virtual text supported?

Please post the entire :YcmDebugInfo. I have a suspicion that you are not running clangd at all.

Signature help is not supported in neovim. See them docs. Or upgrade to vim.