Skip to content

gopls v0.18.0 deprecated hoverKind=Structured #3701

Open
@RaphaelPour

Description

@RaphaelPour

gopls v0.18.0 just got released and deprecated the hoverKind value Strctured which vim-go uses:

The experimental Structured value for the hoverKind option is no longer supported.

Can someone look into this which value should be used instead? If I understood the original deprecation issue right, FullDocumentation (which is the default) is recommended to use instead.

Observation

  • installed go 1.24.0
  • updated vim-go via vundler :PluginUpdate
  • updated go binaries using :GoUpdateBinaries
  • opened an arbitrary go file
Messages maintainer: The Vim Project
"main.go" 23L, 804B
vim-go: initializing gopls
vim-go: initialized gopls
vim-go: Invalid settings: setting option "hoverKind": this setting is deprecated, use "the experimental hoverKind='structured' setting was removed in gopls/v0.18.0 (https://go.dev/issue/70233)" instead
vim-go: Finished loading packages.
vim-go: Invalid settings: setting option "hoverKind": this setting is deprecated, use "the experimental hoverKind='structured' setting was removed in gopls/v0.18.0 (https://go.dev/issue/70233)" instead
Press ENTER or type command to continue

Looking into the vim-go repo, this deprecated setting is used at least once:

✔vim-go [master ✔] $ ag hoverKind
autoload/go/lsp/message.vim
307:          \ 'hoverKind': 'Structured',

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions