Add pyvenv to manage Python virtualenvs and fix local keymap

This commit is contained in:
Dimitri Lozeve 2021-06-04 14:52:34 +02:00
parent 72e965eb3e
commit 132763400c

View file

@ -301,13 +301,16 @@
(use-package lsp-pyright (use-package lsp-pyright
:straight t :straight t
:hook (python-mode . (lambda () :hook (python-mode . (lambda ()
(local-unset-key (kbd "C-f"))
(require 'lsp-pyright) (require 'lsp-pyright)
(lsp))) ; or lsp-deferred (lsp) ; or lsp-deferred
(local-unset-key (kbd "C-f"))))
:config :config
(setq lsp-pyright-use-library-code-for-types nil) (setq lsp-pyright-use-library-code-for-types nil)
(flycheck-add-next-checker 'lsp 'python-pylint)) (flycheck-add-next-checker 'lsp 'python-pylint))
(use-package pyvenv
:straight t)
(use-package julia-mode (use-package julia-mode
:straight t) :straight t)