Skip to content

InlayHints support for gopls #1369

Closed Answered by joaotavora
Gavinok asked this question in Q&A
Mar 5, 2024 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

Sorry, @Gavinok , I unmarked you answer because I don't think it needs to be as complicated as you say.

A much simpler way is to just set:

(setq-default eglot-workspace-configuration (quote (:gopls (:hints (:parameterNames t)))))

add more types of hints if you want. See #1369 (reply in thread) for a full emacs -Q recipe.

Ideally, even this shouldn't be needed. Gopls should enable this by default, or allow this via initializationOptions or command-line parameters, since this is not usually a per-project thing.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@joaotavora
Comment options

Comment options

You must be logged in to vote
4 replies
@Gavinok
Comment options

@Gavinok
Comment options

@joaotavora
Comment options

@Gavinok
Comment options

Answer selected by joaotavora
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants