neovimのmasonがエラーを起こしだした

neovimのmasonがエラーを起こしだした
lspのエラーがなんだとか表示されるようになった。 最近masonのリポジトリがmason-orgになりバージョンアップしたせいではあるだろう。 確認したところver2.0の仕様に合わせていないlspがあるので移行が終わるまでは以下のようにver1を使うことを推奨されていた。
Releases · mason-org/mason-lspconfig.nvim
Extension to mason.nvim that makes it easier to use lspconfig with mason.nvim. - mason-org/mason-lspconfig.nvim
Masonのver1を使う
~/.config/nvim/lua/plugins/mason-workwround.lua
などとプラグインのファイルを作成して以下のように記述する。
return { { "mason-org/mason.nvim", version = "^1.0.0" }, { "mason-org/mason-lspconfig.nvim", version = "^1.0.0" },}
その後neovimのプラグインをインストール
参照元
bug: Failed to run `config` for nvim-lspconfig after mason upgrade · Issue #6039 · LazyVim/LazyVim
Did you check docs and existing issues? I have read all the LazyVim docs I have updated the plugin to the latest version before submitting this issue I have searched the existing issues of LazyVim ...