-
Notifications
You must be signed in to change notification settings - Fork 226
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
Language Server: implement textDocument/hover #1187
Comments
Is there any plan for adding hover info for literals, say to show what a binary literal is in hex or decimal? Or utility functions (e.g. |
There are many ideas that could be implemented, alas there is not enough time. |
Hi, I just wanted to ask which hover functionalities currently exist if any. The language server README says: verible-verilog-ls by default loads and analyses only currently edited files in the editor. To be able to utilize such features as going to definition, going to references, printing hover info project-wide, add a verible.filelist file to the project. This indicates that hover info already exists, but it doesn't work for me, while go-to-definition does after setting up verible.filelist, hence my question. |
There is actually some partial hover implementation, but it is disabled right now. You have to set the Reason why it is currently disabled is, that it creates a full symbol table of all files first, while it would be probably better to look in the local file first before doing an expensive symbol table creation. But, this is a start and can be expanded from there. |
Hi, As a workaround, you can use the This solution leverages nvim-treesitter and expands the preview until the line containing the definition is fully selected. |
The Hover request should return some information that can be useful in the context
Ideas:
end
block - if this is a labelled block, name of the labelendmodule
,endfunction
... name of the corresponding thing.Some simple things can probably be relatively easily be derived, others might need symbol table.
The text was updated successfully, but these errors were encountered: