Add Python mode

This commit is contained in:
2025-01-31 10:40:54 -08:00
parent 20dec18d38
commit 4437c46c31

View File

@@ -783,6 +783,13 @@
(use-package rust-mode (use-package rust-mode
:ensure t) :ensure t)
;;;; Python
(setq major-mode-remap-alist
'((python-mode . python-ts-mode)))
(setq lsp-pylsp-plugins-flake8-ignore '("D100" "D101" "D102"))
;;;; Docker ;;;; Docker
(use-package dockerfile-mode (use-package dockerfile-mode
:ensure t) :ensure t)
@@ -831,6 +838,7 @@
orig-result))) orig-result)))
(advice-add 'lsp-resolve-final-command :around #'lsp-booster--advice-final-command) (advice-add 'lsp-resolve-final-command :around #'lsp-booster--advice-final-command)
:hook ((rust-ts-mode . lsp-deferred) :hook ((rust-ts-mode . lsp-deferred)
(python-ts-mode . lsp-deferred)
(lsp-mode . lsp-enable-which-key-integration) (lsp-mode . lsp-enable-which-key-integration)
(lsp-completion-mode . my/lsp-mode-setup-completion))) (lsp-completion-mode . my/lsp-mode-setup-completion)))