ray-x / lsp_signature.nvim

LSP signature hint as you type
Apache License 2.0
1.98k stars 53 forks source link

fix: "Attempt to call field 'get_clients' (a nil value)" error for some 0.10 versions #315

Closed Sublimeful closed 4 months ago

Sublimeful commented 4 months ago

I know PR #312 was made to try and address this issue. But this error is still popping up for me on the latest prerelease version of Neovim (NVIM v0.10.0-dev-2539+ga69c72063 at the moment) with the macos build. With this PR, I intend to fix this issue by checking if the method "vim.lsp.get_clients" exists before running it, and if not then run "vim.lsp.get_active_clients".