this repo has no description

Revert "switch pyright to ty"

This reverts commit e0ac9422e17f98b6e5a43da3f4ad3d7aa3d95de7.

Changed files
+33 -4
nvim
+33 -4
nvim/init.lua
··· 521 521 }) 522 522 end, 523 523 }, 524 - ty = { 525 - cmd = { "uv", "run", "ty", "server" }, 524 + pyright = { 525 + before_init = function(_, config) 526 + config.settings.python = vim.tbl_deep_extend("force", config.settings.python or {}, { 527 + pythonPath = get_python_path(config.root_dir), 528 + }) 529 + end, 530 + settings = { 531 + python = { 532 + analysis = { 533 + typeCheckingMode = "strict", 534 + diagnosticMode = "workspace", 535 + useLibraryCodeForTypes = true, 536 + autoSearchPaths = true, 537 + autoImportCompletions = true, 538 + diagnosticSeverityOverrides = { 539 + reportMissingTypeStubs = "none", 540 + reportGeneralTypeIssues = "warning", 541 + reportOptionalMemberAccess = "none", 542 + }, 543 + stubPath = "typings", 544 + ignore = { "**/node_modules", "**/__pycache__", "**/venv", "**/.venv" }, 545 + }, 546 + linting = { 547 + enabled = false, 548 + }, 549 + }, 550 + }, 551 + on_attach = function(client, bufnr) 552 + -- Disable formatting capabilities for Pyright (let ruff handle it) 553 + client.server_capabilities.documentFormattingProvider = false 554 + client.server_capabilities.documentRangeFormattingProvider = false 555 + end, 526 556 }, 527 557 } 528 558 ··· 556 586 "prettierd", 557 587 "reorder-python-imports", 558 588 "htmlhint", 559 - -- "pyright", 560 - "ty", 589 + "pyright", 561 590 "ruff", 562 591 "rust_analyzer", 563 592 })