Add py-isort
This commit is contained in:
parent
7b8d603425
commit
87dc8b8cac
@ -53,4 +53,12 @@
|
|||||||
:general
|
:general
|
||||||
(python-mode-map "C-c C-d" #'lsp-describe-thing-at-point))
|
(python-mode-map "C-c C-d" #'lsp-describe-thing-at-point))
|
||||||
|
|
||||||
|
;; isort to sort Python imports
|
||||||
|
(use-package py-isort
|
||||||
|
:commands (py-isort-buffer py-isort-region)
|
||||||
|
:config
|
||||||
|
(setq py-isort-options '("-m=3"))
|
||||||
|
:general
|
||||||
|
(python-mode-map "C-c C-i" #'py-isort-buffer))
|
||||||
|
|
||||||
(provide 'init-python)
|
(provide 'init-python)
|
||||||
|
Loading…
Reference in New Issue
Block a user