aboutsummaryrefslogtreecommitdiff
path: root/tests/test-prog-python--lsp-guard.el
Commit message (Collapse)AuthorAgeFilesLines
* fix(prog-python): keep the pyright guard authoritative for LSP attachCraig Jennings34 hours1-0/+64
lsp-pyright's :hook lambda called require and lsp-deferred unguarded on every python-ts buffer, so a machine without pyright still got the LSP attach prompt that cj/python-setup's guard exists to prevent. The guarded branch now owns the require and the attach, and the hook is gone. Classic python-mode now runs the same setup hooks as python-ts-mode, so treesit-auto's grammar-unavailable fallback keeps indentation, keys, and LSP. Four tests cover the guard branches and pin that every python hook entry stays a named function.