hansec / fortran-language-server

Fortran Language Server for the Language Server Protocol
MIT License
294 stars 57 forks source link

Highlight symbols when hover? #197

Closed nujabse closed 3 years ago

nujabse commented 3 years ago

Fortran-language-server seems not to hightlight symbols when hovering, can this be implemented?

gnikit commented 3 years ago

Hi, from what I understand you want something like this right? Screenshot from 2021-04-17 09-11-09

I would suspect that might be beyond the control of fortls and that it varies between code editors and themes. For example in VSCode (and I think Atom but don't quote me on that) that is the default behaviour.

NOTE: Disregard previous answer, I thought this was posted in the VSCode extension repo.

nujabse commented 3 years ago

Thanks for the help. I have tested that highlighting symbols works fine on VSCode, but on Emacs with lsp-mode, it does not work. Maybe there is something that I need to further configure. Thanks!

gnikit commented 3 years ago

Thanks for the help. I have tested that highlighting symbols works fine on VSCode, but on Emacs with lsp-mode, it does not work. Maybe there is something that I need to further configure. Thanks!

I updated my answer, sorry I thought this was posted on the VSCode repo :disappointed_relieved: