return { { "neovim/nvim-lspconfig", opts = { servers = { tsserver = { root_dir = function(fname) return require("lspconfig.util").root_pattern( "pnpm-workspace.yaml", "nx.json", "turbo.json", "package.json", ".git" )(fname) end, }, gopls = { root_dir = function(fname) return require("lspconfig.util").root_pattern( "go.work", "go.mod", ".git" )(fname) end, }, pyright = { root_dir = function(fname) return require("lspconfig.util").root_pattern( "pyproject.toml", "setup.py", ".git" )(fname) end, }, }, }, }, }