From 1982c66c3f273d6d8a53df9a0a95b60dc3654046 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com>
Date: Mon, 17 Jan 2022 00:02:07 +0100
Subject: [PATCH] Utilise lsp pour python

---
 Configuration.org | 17 +++--------------
 1 file changed, 3 insertions(+), 14 deletions(-)

diff --git a/Configuration.org b/Configuration.org
index 374bc02..b9b9be4 100644
--- a/Configuration.org
+++ b/Configuration.org
@@ -406,6 +406,7 @@ On rappelle quelques raccourcis utiles :
     ;; barre de localisation
     (setq lsp-headerline-breadcrumb-enable t)
     :hook ((c++-mode . lsp)
+           (python-mode . lsp)
            (lsp-mode . lsp-enable-which-key-integration))
     :custom-face
     (lsp-face-highlight-textual ((t (:inherit highlight :underline t))))
@@ -591,25 +592,13 @@ On utilise ~posframe~ pour afficher les erreurs en ligne
 #+END_SRC
 ** Python
 Attention pour que la configuration fonctionne, il faut installer
-~virtualenv~. Pour les systèmes ~Debian~
+~pylsp~.
 #+BEGIN_SRC bash :eval no
-  apt install virtualenv
+  pip install python-lsp-server
 #+END_SRC
 #+BEGIN_SRC emacs-lisp
   (setq py-python-command "python3")
   (setq python-shell-interpreter "python3")
-
-  (use-package elpy
-    :ensure t
-    :custom (elpy-rpc-backend "jedi")
-    :config
-    (elpy-enable))
-
-  (use-package virtualenvwrapper
-    :ensure t
-    :config
-    (venv-initialize-interactive-shells)
-    (venv-initialize-eshell))
 #+END_SRC
 
 ** YASnippet
-- 
GitLab