ray-x / go.nvim

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

Inlay Hints dont work #495

Open ghost opened 3 weeks ago

ghost commented 3 weeks ago

Hi, I am using LazyVim and I created a new file using your lazy config under the plugins directory. Everything works fine except for the inlay hints.

Could you please take a look?

Thanks!

danilevy1212 commented 3 weeks ago

Same here, there seems to be something broken with how it is enabled here: https://github.com/ray-x/go.nvim/blob/abd282564a31c5dec14e2038ebf04fdac9ea3278/lua/go/inlay.lua#L322

image

I get this error continuously. I can confirm that disabling inline hints fixes the issue.

Looking at the :help vim.lsp.inlay_hint, seems line enable takes a boolean, not the bufn. the bufnr should be passed to the second argument.

[dlevym@inspirion] ~ nvim --version
NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info