Skip to content
Snippets Groups Projects
Commit 1982c66c authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Utilise lsp pour python

parent c5c7f562
No related branches found
No related tags found
No related merge requests found
...@@ -406,6 +406,7 @@ On rappelle quelques raccourcis utiles : ...@@ -406,6 +406,7 @@ On rappelle quelques raccourcis utiles :
;; barre de localisation ;; barre de localisation
(setq lsp-headerline-breadcrumb-enable t) (setq lsp-headerline-breadcrumb-enable t)
:hook ((c++-mode . lsp) :hook ((c++-mode . lsp)
(python-mode . lsp)
(lsp-mode . lsp-enable-which-key-integration)) (lsp-mode . lsp-enable-which-key-integration))
:custom-face :custom-face
(lsp-face-highlight-textual ((t (:inherit highlight :underline t)))) (lsp-face-highlight-textual ((t (:inherit highlight :underline t))))
...@@ -591,25 +592,13 @@ On utilise ~posframe~ pour afficher les erreurs en ligne ...@@ -591,25 +592,13 @@ On utilise ~posframe~ pour afficher les erreurs en ligne
#+END_SRC #+END_SRC
** Python ** Python
Attention pour que la configuration fonctionne, il faut installer Attention pour que la configuration fonctionne, il faut installer
~virtualenv~. Pour les systèmes ~Debian~ ~pylsp~.
#+BEGIN_SRC bash :eval no #+BEGIN_SRC bash :eval no
apt install virtualenv pip install python-lsp-server
#+END_SRC #+END_SRC
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq py-python-command "python3") (setq py-python-command "python3")
(setq python-shell-interpreter "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 #+END_SRC
** YASnippet ** YASnippet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment