ray-x / go.nvim

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

Fixes #451 inlay hint api change #452

Closed luv2code closed 2 months ago

luv2code commented 2 months ago

Change the calls to inlay_hint.enable to arrange the parameters in the expected way.

Fixes #451

this is the error this PR addresses:

vim.lsp.inlay_hint.enable(bufnr:number, enable:boolean) is deprecated, use vim.lsp.inlay_hint.enable(enable:boolean, filter:table) instead. :help
 deprecated
Feature was removed in Nvim 0.10-dev
luv2code commented 2 months ago

There is a failing unit test. It doesn't fail for me when I run the tests locally, and it doesn't appear to have anything to do with the code changes I made.