Add pyvenv to manage Python virtualenvs and fix local keymap
This commit is contained in:
parent
72e965eb3e
commit
132763400c
1 changed files with 5 additions and 2 deletions
7
init.el
7
init.el
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue