I eventually gave up using mason and lsp servers and used nixvim
https://github.com/will-x86/nixos-dotfiles
( ./home/base/nixvim)