local new_capability = { -- remove some of the diagnostics that duplicates those from ruff textDocument = { publishDiagnostics = { tagSupport = { valueSet = { 2 }, }, }, hover = { contentFormat = { "plaintext" }, dynamicRegistration = true, }, }, } return { cmd = { "delance-langserver", "--stdio" }, settings = { pyright = { -- disable import sorting and use ruff for this disableOrganizeImports = true, disableTaggedHints = false, }, python = { analysis = { autoSearchPaths = true, diagnosticMode = "workspace", typeCheckingMode = "standard", useLibraryCodeForTypes = true, diagnosticSeverityOverrides = { deprecateTypingAliases = false, }, inlayHints = { callArgumentNames = "partial", functionReturnTypes = true, pytestParameters = true, variableTypes = true, }, }, }, }, capabilities = new_capability, }