No way to disable Inlay Hints
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,
},
...
})
should be just enable = false
Quite the contrary for me, I don't seem to be able to enable it
should be just
enable = false
don't use inlayhint ? solution
Same problem. Sometimes I need to disable inlay hint for a while to clean my eyes......
There is a bug the InlayHint was attached to CursorHold auto command. It should been fixed ATM
Was this resolved? Still seeing this issue. Trying to disable it when debugging, as mixing these with the debug inlays is too noisy.
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 },
}
Looks fine to me,
left: inlay disabled; right: default inlay enabled
I am using init_lazy.lua in this folder: https://github.com/ray-x/go.nvim/tree/master/playground