#28 Hover under lsp emacs

Open
opened 3 months ago by csantosb · 4 comments

Hi,

I'm using vhdltool along with emacs lsp mode and lsp-ui. So far, so good.

However, in the hover, I see a "Keyword : signal" and "Could not find identifier : std_logic" or similar all the time.

Is there a way to suppress this information ?

Thanks,

Hi, I'm using vhdltool along with emacs lsp mode and lsp-ui. So far, so good. However, in the hover, I see a "Keyword : signal" and "Could not find identifier : std_logic" or similar all the time. Is there a way to suppress this information ? Thanks,
vhdl-tool commented 2 months ago
Owner

To properly fix the "Could not find identifier" problem, you should point vhdl-tool to the IEEE libraries, as described here: http://www.vhdltool.com/configuration. That will tell it what a "std_logic" is.

There is no way to tell vhdl-tool to suppress hover info, that's up to the language client frontend. There should be a configuration option for lsp-ui to disable it.

To properly fix the "Could not find identifier" problem, you should point vhdl-tool to the IEEE libraries, as described here: http://www.vhdltool.com/configuration. That will tell it what a "std_logic" is. There is no way to tell vhdl-tool to suppress hover info, that's up to the language client frontend. There should be a configuration option for lsp-ui to disable it.
csantosb commented 2 months ago
Poster

Great, thanks ! For the record regarding first issue, I'm using /usr/lib/ghdl/src/ieee2008/*.vhdl, and it fixes it.

Concerning the hover info, I have an option under emacs to suppress it all, but not part of it (I only need to get rid of the Keyword messages). I'm not sure if this is server or client related, I'll try to investigate further on from the client side, and let you know if find something.

Great, thanks ! For the record regarding first issue, I'm using /usr/lib/ghdl/src/ieee2008/*.vhdl, and it fixes it. Concerning the hover info, I have an option under emacs to suppress it all, but not part of it (I only need to get rid of the Keyword messages). I'm not sure if this is server or client related, I'll try to investigate further on from the client side, and let you know if find something.
vhdl-tool commented 2 months ago
Owner

So - you want all hover information except when its a keyword?

That's server related. I will add an option for that in the next release.

So - you want all hover information except when its a keyword? That's server related. I will add an option for that in the next release.
csantosb commented 1 month ago
Poster

That's correct. Thanks, I'll test when ready.

That's correct. Thanks, I'll test when ready.
Sign in to join this conversation.
No Label
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.