-
Hi, I am using up-to date lsp and friends from melpa. WIth my setup, I will happily see code lenses when doing java code, but nothing ever shows up for go. I have all variables enabled that have something to do with code-lenses (also the go specific ones) still nothing can be seen. Looking at the lsp severs capabilities, it simply states "codeLensProvider: " - no "t" oder anything else after that. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
interestingly - when I enable lsp-mode for go.mod files, inside those it shows me a couple of code lenses. |
Beta Was this translation helpful? Give feedback.
-
There aren't very many code lenses. Here you can see most of the lenses are for go.mod files. For regular files you can opt in to "gc_details", and there is one for go generate commands and cgo. Also, there is a code lens called "test" you can opt in to that lets you run individual tests (not sure why it isn't documented). |
Beta Was this translation helpful? Give feedback.
There aren't very many code lenses. Here you can see most of the lenses are for go.mod files. For regular files you can opt in to "gc_details", and there is one for go generate commands and cgo. Also, there is a code lens called "test" you can opt in to that lets you run individual tests (not sure why it isn't documented).