Add isort and make note about null-ls

This commit is contained in:
ViViDboarder 2024-10-04 09:16:58 -07:00
parent 4ff38af295
commit 974ad2e128
2 changed files with 4 additions and 1 deletions

View File

@ -325,8 +325,10 @@ return {
-- Generic linter/formatters in diagnostics API -- Generic linter/formatters in diagnostics API
{ {
-- TODO: null-ls is archived and no longer maintained. It is replaced by none-ls
-- Replace with https://github.com/nvimtools/none-ls.nvim
"https://github.com/jose-elias-alvarez/null-ls.nvim", "https://github.com/jose-elias-alvarez/null-ls.nvim",
-- This is lazy and configured after lspis loaded in plugins/lsp.lua -- This is lazy and configured after lsps loaded in plugins/lsp.lua
lazy = true, lazy = true,
branch = utils.map_version_rule({ branch = utils.map_version_rule({
[">=0.8.0"] = utils.nil_val, [">=0.8.0"] = utils.nil_val,

View File

@ -49,6 +49,7 @@ function M.configure(options)
null_ls.builtins.formatting.fish_indent, null_ls.builtins.formatting.fish_indent,
-- Python -- Python
null_ls.builtins.formatting.reorder_python_imports, null_ls.builtins.formatting.reorder_python_imports,
null_ls.builtins.formatting.isort,
null_ls.builtins.formatting.black, null_ls.builtins.formatting.black,
null_ls.builtins.diagnostics.mypy, null_ls.builtins.diagnostics.mypy,
-- Go -- Go