From d188dd4c89c189bfa7bc25851eb0c34bd643baaf Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 12 Sep 2024 10:39:37 +0200 Subject: [PATCH] lsp-mode: Move python-mode config for lsp-mode to python config To decouple python from the dev config and contain it solely in the python config, configure the lsp-mode for python in the python config. --- .emacs.d/config/dev.el | 1 - .emacs.d/config/python.el | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.emacs.d/config/dev.el b/.emacs.d/config/dev.el index 729f623..2fc351f 100644 --- a/.emacs.d/config/dev.el +++ b/.emacs.d/config/dev.el @@ -49,7 +49,6 @@ (use-package lsp-mode :ensure t :hook - (python-mode . lsp-deferred) (rust-mode . lsp-deferred) (toml-mode . lsp-deferred) :config diff --git a/.emacs.d/config/python.el b/.emacs.d/config/python.el index ebd3269..e2236e9 100644 --- a/.emacs.d/config/python.el +++ b/.emacs.d/config/python.el @@ -5,3 +5,8 @@ :ensure t :hook (python-mode . flycheck-mode)) + +(use-package lsp-mode + :ensure t + :hook + (python-mode . lsp-deferred))