diff --git a/Configuration.org b/Configuration.org index 374bc023f111d925da6ab50e4486c30173cd26d6..b9b9be45d195a1bb58e9589e02d10802c2748fe5 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