Add lang/python module with uv/ruff/pylsp, ANSI colors, and LSP auto-install

- Add lang/python.el: project detection, ruff format-on-save, C-c C-v -> ruff check,
  optional pylsp with auto-install via uv (asks once per session)
- Fix pylsp resolution to check .venv, uv tool path, and PATH
- Disable legacy pyls client to avoid spurious warnings
- Add ANSI color support in compilation buffers (editor.el)
- Remove python-mode/python-ts-mode from global lsp-deferred hooks (lsp.el)
- Add ruff, ty, uv packages to desktop group_vars
This commit is contained in:
Fabio Scotto di Santolo
2026-04-17 00:07:12 +02:00
parent 5065c02930
commit 10e79a4bae
5 changed files with 168 additions and 27 deletions

View File

@@ -1,5 +1,7 @@
;;; core-editor
(require 'ansi-color)
(setq standard-indent 4)
(setq tab-stop-list nil)
(setq indent-tabs-mode nil)
@@ -9,6 +11,8 @@
(prefer-coding-system 'utf-8-unix)
(setq custom-file (null-device))
(add-hook 'compilation-filter-hook #'ansi-color-compilation-filter)
(provide 'editor)
;;; editor.el ends here