return { cmd = { "pyright-langserver", "--stdio" }, filetypes = { "python" }, root_markers = { "pyproject.toml", "setup.py", "setup.cfg", "requirements.txt", "Pipfile", "pyrightconfig.json", ".git", }, capabilities = { offsetEncoding = { "utf-8" }, }, single_file_support = true, settings = { pyright = { -- use ruff import organizer disableOrganizeImports = true, }, python = { analysis = { -- ignore all files for analysis and use ruff for linting ignore = { '*' }, -- diagnosticSeverityOverrides = "none", autoSearchPaths = true, useLibraryCodeForTypes = true, diagnosticMode = "openFilesOnly", -- typeCheckingMode = "off", }, }, }, }