Skip to content

Commit

Permalink
fix(python): Adds Imports Sorting with isort to the Python Pack (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
WaelKarkoub authored Sep 5, 2023
1 parent bb52899 commit 2fe93b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lua/astrocommunity/pack/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ This plugin pack does the following:
- Adds `pyright` and `ruff_lsp` language servers
- Adds the following `null-ls` sources:
- [black](https://pypi.org/project/black/)
- [isort](https://pypi.org/project/isort/)
- Adds `debugpy` for debugging
4 changes: 3 additions & 1 deletion lua/astrocommunity/pack/python/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ return {
},
{
"jay-babu/mason-null-ls.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "black") end,
opts = function(_, opts)
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, { "black", "isort" })
end,
},
{
"jay-babu/mason-nvim-dap.nvim",
Expand Down

0 comments on commit 2fe93b3

Please sign in to comment.