Added pyimport support

This commit is contained in:
Mambu38 2019-05-15 12:58:48 +02:00
parent 5cd1fb2a52
commit 5e66914fa2
2 changed files with 18 additions and 0 deletions

View file

@ -206,3 +206,18 @@ called.")
(add-to-list 'global-mode-string
'(conda-env-current-name (" conda:" conda-env-current-name " "))
'append))
;; Import managements
(def-package! pyimport
:after python
:init
(map! :after python
:map 'python-mode-map
:localleader
(:prefix ("i" . "insert")
:desc "Missing imports" "m" #'pyimport-insert-missing)
(:prefix ("r" . "remove")
:desc "Unused imports" "r" #'pyimport-remove-unused)
)
)

View file

@ -20,3 +20,6 @@
;; Testing frameworks
(package! nose)
(package! python-pytest)
;; Import managements
(package! pyimport)