Add py-isort feature to the python module
This commit is contained in:
parent
9dba02b7c2
commit
8e844eada1
2 changed files with 13 additions and 0 deletions
|
@ -143,6 +143,16 @@ called.")
|
|||
:desc "Optimize imports" "o" #'+python/optimize-imports)))
|
||||
|
||||
|
||||
(use-package! py-isort
|
||||
:defer t
|
||||
:init
|
||||
(map! :after python
|
||||
:map python-mode-map
|
||||
:localleader
|
||||
(:prefix ("i" . "imports")
|
||||
:desc "Sort imports" "s" #'py-isort-buffer
|
||||
:desc "Sort region" "r" #'py-isort-region)))
|
||||
|
||||
(use-package! nose
|
||||
:commands nose-mode
|
||||
:preface (defvar nose-mode-map (make-sparse-keymap))
|
||||
|
|
|
@ -32,3 +32,6 @@
|
|||
;; Import managements
|
||||
(package! pyimport)
|
||||
(package! pyimpsort)
|
||||
|
||||
(when (featurep! +isort)
|
||||
(package! py-isort))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue