Skip to content

"No information available" when calling vim.lsp.buf.hover #506

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

Closed
HairlessVillager opened this issue Dec 26, 2023 · 2 comments
Closed

"No information available" when calling vim.lsp.buf.hover #506

HairlessVillager opened this issue Dec 26, 2023 · 2 comments

Comments

@HairlessVillager
Copy link

First of all, I appreciate your efforts in maintaining this project.🥰 The following issue may seem trivial, but I have not been able to solve it after checking many documents. If it has taken up your valuable time, I apologize.

I have bound the 'K' key to the vim.lsp.buf.hover function using vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts). However, when I press the 'K' key, NeoVim displays "No information available" at the bottom, regardless of whether the cursor is on a variable name or keyword. This issue persists even after using :LspRestart.

screenshots

I have adjusted the log level of lsp.log to DEBUG. Here is a typical log snippet:

lsp.log

The code in the buffer and the configuration file are as follows:

test_simple.py

nvim-lspconfig.lua

I am using the Windows 10 and NeoVim version 0.9.4.

@HairlessVillager
Copy link
Author

I'm not entirely sure if this issue should be raised here, but when I enable the jedi_language_server, the hover window appears again (of course, this is because of jedi_language_server), but "No information available" still appears at the bottom. So I think this might be a bug in pylsp.

@HairlessVillager
Copy link
Author

Oh, maybe this is a duplication of #444.

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