go.nvim icon indicating copy to clipboard operation
go.nvim copied to clipboard

No way to disable Inlay Hints

Open sidneyw opened this issue 2 years ago • 8 comments

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,
    },
	...
})

sidneyw avatar May 26 '23 13:05 sidneyw

should be just enable = false

ray-x avatar May 27 '23 00:05 ray-x

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

westernwontons avatar Jun 18 '23 00:06 westernwontons

should be just enable = false

don't use inlayhint ? solution

kaidev0711 avatar Jul 18 '23 16:07 kaidev0711

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

Martinits avatar Jul 23 '23 09:07 Martinits

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

ray-x avatar Oct 11 '23 11:10 ray-x

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

MXfive avatar Feb 14 '24 09:02 MXfive

I also still have this problem. I use AstroNvim and the community package astrocommunity.pack.go but with olexsmir/gopher.nvim disabled and go.nvim enabled. I set the following options for go.nvim:

opts = {
      disable_defaults = true,
      diagnostic = false,
      go = "go",
      lsp_inlay_hints = { enable = false },
    }

sebastianst avatar Jul 30 '24 20:07 sebastianst

Looks fine to me, left: inlay disabled; right: default inlay enabled image

I am using init_lazy.lua in this folder: https://github.com/ray-x/go.nvim/tree/master/playground

ray-x avatar Jul 31 '24 07:07 ray-x