Add py-isort

This commit is contained in:
Jeremy Dormitzer 2021-02-24 16:52:01 -05:00
parent 7b8d603425
commit 87dc8b8cac

View File

@ -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)