1
0
Fork 0

Use ‘lsp’ for python code development instead of jedi

This commit is contained in:
Tom Willemse 2020-07-14 09:56:29 -07:00
parent dbf740ba1e
commit dc25705048

View file

@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
;; Version: 2020.0305.222235
;; Package-Requires: (oni-yasnippet oni-company company-jedi oni-fci oni-flycheck oni-hydra rainbow-delimiters reformatter traad)
;; Version: 2020.0706.231614
;; Package-Requires: (oni-yasnippet oni-company oni-fci oni-flycheck oni-hydra oni-lsp rainbow-delimiters reformatter traad)
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@ -75,8 +75,6 @@ for indentation."
(setq-local whitespace-style '(face tabs))
(whitespace-mode))
(add-to-list 'company-backends 'company-jedi)
(reformatter-define python-black
:program "black"
:args `("--line-length" ,(number-to-string fill-column) "-")
@ -89,15 +87,16 @@ for indentation."
(define-key python-mode-map (kbd "C-c r") 'python-refactor-hydra/body)
(add-hook 'python-mode-hook 'company-mode)
(add-hook 'python-mode-hook 'electric-indent-local-mode)
(add-hook 'python-mode-hook 'electric-pair-local-mode)
(add-hook 'python-mode-hook 'flycheck-mode)
(add-hook 'python-mode-hook 'fci-mode)
(add-hook 'python-mode-hook 'company-mode)
(add-hook 'python-mode-hook 'rainbow-delimiters-mode)
(add-hook 'python-mode-hook 'python-black-on-save-mode)
(add-hook 'python-mode-hook 'flycheck-mode)
(add-hook 'python-mode-hook 'lsp)
(add-hook 'python-mode-hook 'oni-python-set-fill-column)
(add-hook 'python-mode-hook 'oni-python-whitespace-mode)
(add-hook 'python-mode-hook 'python-black-on-save-mode)
(add-hook 'python-mode-hook 'rainbow-delimiters-mode)
;;;###autoload
(with-eval-after-load 'python