sort python imports
This commit is contained in:
parent
db1c1995fd
commit
2b0cb80138
3 changed files with 14 additions and 4 deletions
|
@ -129,10 +129,12 @@ called.")
|
|||
:config
|
||||
(map! :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)))
|
||||
(:prefix ("i" . "imports")
|
||||
:desc "Insert missing imports" "i" #'pyimport-insert-missing
|
||||
:desc "Remove unused imports" "r" #'pyimport-remove-unused
|
||||
:desc "Sort imports" "s" #'pyimpsort-buffer
|
||||
:desc "Optimize imports" "o" #'+python/optimize-imports
|
||||
)))
|
||||
|
||||
|
||||
(use-package! nose
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue