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