use pylsp (python-lsp-server)
This commit is contained in:
parent
3b1443aea8
commit
0724c50c7f
14
init.el
14
init.el
@ -708,18 +708,10 @@ inserted between the braces between the braces."
|
|||||||
|
|
||||||
;;; ### Python ###
|
;;; ### Python ###
|
||||||
|
|
||||||
(use-package company-jedi
|
;;; Install [pylsp](https://pypi.org/project/python-lsp-server/).
|
||||||
:defer)
|
|
||||||
|
|
||||||
(defun my-python-mode-hook-fn ()
|
(use-package python
|
||||||
(set (make-local-variable 'company-backends) '(company-jedi))
|
:hook (python-mode . lsp))
|
||||||
(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)
|
|
||||||
|
|
||||||
|
|
||||||
;;; ### Rust ###
|
;;; ### Rust ###
|
||||||
|
Loading…
x
Reference in New Issue
Block a user