Superar / isort.nvim

Neovim plugin to sort Python imports using isort

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Isort.nvim

Neovim plugin to sort python imports using isort.

Inspired by vim-isort.

Requirements

  • Isort (pip install isort).
  • The isort command must be on your PATH.
  • Make sure that you install the latest version of isort (or at least >=5.7.0)

Install

Install using vim-plug. Put this on your init.vim.

Plug 'stsewd/isort.nvim', { 'do': ':UpdateRemotePlugins' }

Usage

Call :Isort and it will sort the imports of the current buffer. You can also pass a range via the visual mode.

All arguments of the command will be passed to isort.

Configuration

Isort command.

g:isort_command = 'isort'

Differences with vim-isort

  • No need to install isort on the same python environment.
  • Pure python implementation.
  • Neovim only.

About

Neovim plugin to sort Python imports using isort

License:MIT License


Languages

Language:Python 100.0%