From 0724c50c7fc90f33d375167ceadc559eeae6b0d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Thu, 27 Jan 2022 10:04:42 +0100 Subject: [PATCH] use pylsp (python-lsp-server) --- init.el | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/init.el b/init.el index e5156c6..f3b4b37 100644 --- a/init.el +++ b/init.el @@ -708,18 +708,10 @@ inserted between the braces between the braces." ;;; ### Python ### -(use-package company-jedi - :defer) +;;; Install [pylsp](https://pypi.org/project/python-lsp-server/). -(defun my-python-mode-hook-fn () - (set (make-local-variable 'company-backends) '(company-jedi)) - (company-mode) - (smartparens-mode 1) - (local-set-key (kbd "M-.") #'jedi:goto-definition) - (local-set-key (kbd "M-,") #'jedi:goto-definition-pop-marker) - (local-set-key "\C-i" #'company-indent-or-complete-common)) - -(add-hook 'python-mode-hook #'my-python-mode-hook-fn) +(use-package python + :hook (python-mode . lsp)) ;;; ### Rust ###