mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Add py-isort feature to the python module
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user