Use ‘lsp’ for python code development instead of jedi
This commit is contained in:
parent
dbf740ba1e
commit
dc25705048
1 changed files with 7 additions and 8 deletions
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2020.0305.222235
|
;; Version: 2020.0706.231614
|
||||||
;; Package-Requires: (oni-yasnippet oni-company company-jedi oni-fci oni-flycheck oni-hydra rainbow-delimiters reformatter traad)
|
;; 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
|
;; 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
|
;; 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))
|
(setq-local whitespace-style '(face tabs))
|
||||||
(whitespace-mode))
|
(whitespace-mode))
|
||||||
|
|
||||||
(add-to-list 'company-backends 'company-jedi)
|
|
||||||
|
|
||||||
(reformatter-define python-black
|
(reformatter-define python-black
|
||||||
:program "black"
|
:program "black"
|
||||||
:args `("--line-length" ,(number-to-string fill-column) "-")
|
: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)
|
(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-indent-local-mode)
|
||||||
(add-hook 'python-mode-hook 'electric-pair-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 'fci-mode)
|
||||||
(add-hook 'python-mode-hook 'company-mode)
|
(add-hook 'python-mode-hook 'flycheck-mode)
|
||||||
(add-hook 'python-mode-hook 'rainbow-delimiters-mode)
|
(add-hook 'python-mode-hook 'lsp)
|
||||||
(add-hook 'python-mode-hook 'python-black-on-save-mode)
|
|
||||||
(add-hook 'python-mode-hook 'oni-python-set-fill-column)
|
(add-hook 'python-mode-hook 'oni-python-set-fill-column)
|
||||||
(add-hook 'python-mode-hook 'oni-python-whitespace-mode)
|
(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
|
;;;###autoload
|
||||||
(with-eval-after-load 'python
|
(with-eval-after-load 'python
|
||||||
|
|
Loading…
Reference in a new issue