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 312e915840
commit 54d3d81014
5 changed files with 168 additions and 27 deletions

View File

@@ -6,13 +6,13 @@
;; Load modules
;;=====================================================================================
(fscotto/load-modules
;; Core
'core/packages
'core/ui
'core/performance
'core/editor
'core/keybindings
'core/buffer
;; Core
'core/packages
'core/ui
'core/performance
'core/editor
'core/keybindings
'core/buffer
;; Tools
'tools/completion
@@ -24,28 +24,29 @@
'tools/dap
'tools/treesitter
;; Languages
'lang/c
'lang/docker
'lang/golang
'lang/json
'lang/markdown
'lang/org
'lang/shell
'lang/yaml
;; Languages
'lang/c
'lang/docker
'lang/golang
'lang/json
'lang/markdown
'lang/org
'lang/python
'lang/shell
'lang/yaml
;; Misc
'misc/dashboard
'misc/custom-functions
'misc/doom-modeline
'misc/which-key
'misc/gptel
'misc/email
'misc/rss
;; Misc
'misc/dashboard
'misc/custom-functions
'misc/doom-modeline
'misc/which-key
'misc/gptel
'misc/email
'misc/rss
'misc/terminal
'misc/vcs
'misc/pdf
'misc/epub
'misc/i3-config)
'misc/i3-config)
(message "...user configuration loaded")