ray-x / go.nvim

G'day Nvimer, Joyful Gopher: Discover the Feature-Rich Go Plugin for Neovim
MIT License
1.93k stars 119 forks source link

No way to disable Inlay Hints #342

Open sidneyw opened 1 year ago

sidneyw commented 1 year ago

Since updating to ed7e79b9192a13ce189c80c182e897ad1c8c7e29 there is no way to remove inlay hints using this package.

GoToggleInlay removes the inlay hint for ~1s and then they are re-enabled.

Adding the following to my configuration did not help either.

go.setup({
    ...
    lsp_inlay_hints = {
      enabled = false,
    },
    ...
})
ray-x commented 1 year ago

should be just enable = false

westernwontons commented 1 year ago

Quite the contrary for me, I don't seem to be able to enable it

kaidev0711 commented 1 year ago

should be just enable = false

don't use inlayhint ? solution

Martinits commented 12 months ago

Same problem. Sometimes I need to disable inlay hint for a while to clean my eyes......

ray-x commented 9 months ago

There is a bug the InlayHint was attached to CursorHold auto command. It should been fixed ATM

MXfive commented 5 months ago

Was this resolved? Still seeing this issue. Trying to disable it when debugging, as mixing these with the debug inlays is too noisy.